EVOLUTION-NINJA
Edit File: region_news_view.php
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <title>Yaskawa</title> <link rel="stylesheet" type="text/css" media="screen" href="<?php echo base_url('assets/css/jquery-ui.css'); ?>" /> <!-- The link to the CSS that the grid needs --> <link rel="stylesheet" type="text/css" media="screen" href="<?php echo base_url('jqgrid/css/ui.jqgrid.css'); ?>" /> <!-- Bootstrap Core CSS --> <link href="<?php echo base_url('admin_assets/css/bootstrap.min.css');?>" rel="stylesheet"> <!-- Custom CSS --> <link href="<?php echo base_url('admin_assets/css/sb-admin.css');?>" rel="stylesheet"> <!-- Morris Charts CSS --> <link href="<?php echo base_url('admin_assets/css/plugins/morris.css');?>" rel="stylesheet"> <!-- Custom Fonts --> <link href="<?php echo base_url('admin_assets/font-awesome/css/font-awesome.min.css');?>" rel="stylesheet" type="text/css"> <script type="text/javascript" src="<?php echo base_url('assets/js/jquery-2.2.4.min.js');?>"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif]--> <script type="text/ecmascript" src="<?php echo base_url('jqgrid/js/jquery.jqGrid.js'); ?>"></script> <!-- This is the Javascript file of jqGrid --> <script type="text/ecmascript" src="<?php echo base_url('jqgrid/js/i18n/grid.locale-en.js'); ?>"></script> <script type="text/ecmascript" src="<?php echo base_url('jqgrid/js/jquery.jqGrid.min.js'); ?>"></script> <script src="<?php echo base_url('assets/js/jquery-ui.js'); ?>" type="text/javascript"></script> <style> .right { text-transform: uppercase; font-family:Roboto; font-weight:bold; color:#00a859; } </style> <style type="text/css"> .form-control:focus, input[type="Submit"]:focus, input[type="button"]:focus { border-color: #FF0000; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(255, 0, 0, 0.6); } #editmodlist2 { //height: 232px !important; width: 326px !important; } #FrmGrid_list2 { width: 100% !important; } .ui-jqdialog .ui-jqdialog-titlebar { height: 29px !important; background-color:#2A4474 !important; color: white; padding-left: 10px; } .fm-button { height: 21px !important; padding: 1px; margin-right: 10px !important; height: 21px !important; width: 43%; margin-top: -7px !important; } .ui-jqdialog-content td.navButton { padding-top: 12px !important; } .ui-jqgrid .ui-jqgrid-titlebar { height: 27px !important; background-color: #2A4474!important; color:white !important; } .ui-jqgrid-bdiv { height: 232px !important; } .ui-widget-overlay { z-index:0 !important; } </style> </head> <body> <div id="wrapper"> <!-- Navigation --> <nav class="navbar navbar-inverse navbar-fixed-top menu-a" role="navigation"> <!-- Brand and toggle get grouped for better mobile display --> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand my_logo" href="<?php echo site_url('controller/product');?>"><img class="img-responsive" src="<?php echo base_url('admin_assets/img/yaskawa_logo2.png');?>"></a> </div> <!-- Top Menu Items --> <ul class="nav navbar-right top-nav"> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-user"></i> Regional Manager</a> <li> <a href="<?php echo site_url('controller/logout');?>"><i class="fa fa-fw fa-power-off"></i> Log Out</a> </li> </li> </ul> <!-- Sidebar Menu Items - These collapse to the responsive navigation menu on small screens --> <div class="collapse navbar-collapse navbar-ex1-collapse"> <ul class="nav navbar-nav side-nav my-nav"> <!-- <li class="active"> <a href="index.html"><i class="fa fa-fw fa-dashboard"></i> Dashboard</a> </li> --> <li class="active"> <a href="javascript:;" data-toggle="collapse" data-target="#demo1"> Manage Users <i class="fa fa-fw fa-caret-down"></i></a> <ul id="demo1" class="collapse"> <li> <a href="<?php echo site_url('controller/reg_supervisor_view');?>">Supervisor</a> </li> <li> <a href="<?php echo site_url('controller/reg_abp_view');?>">ABP</a> </li> </ul> </li> <li> <a href="javascript:;" data-toggle="collapse" data-target="#demo2"> Information <i class="fa fa-fw fa-caret-down"></i></a> <ul id="demo2" class="collapse"> <li> <a href="<?php echo site_url('controller/reg_stock_updates_view');?>">Stock Updates</a> </li> <li> <a href="<?php echo site_url('controller/reg_po_view');?>">PO Acknowledgemets</a> </li> </ul> </li> <li> <a href="javascript:;" data-toggle="collapse" data-target="#demo3"> Financials<i class="fa fa-fw fa-caret-down"></i></a> <ul id="demo3" class="collapse"> <li> <a href="<?php echo site_url('controller/reg_outstanding_view');?>">Outstanding Statement</a> </li> <li> <a href="<?php echo site_url('controller/reg_overdue_view');?>">Overdue Statement</a> </li> <li> <a href="<?php echo site_url('controller/reg_cform_view');?>">C forms</a> </li> </ul> </li> <li> <a href="javascript:;" data-toggle="collapse" data-target="#demo4"> Technical Support<i class="fa fa-fw fa-caret-down"></i></a> <ul id="demo4" class="collapse"> <li> <a href="<?php echo site_url('controller/reg_drive_catalogues_view');?>">Drive Catalogues</a> </li> <li> <a href="<?php echo site_url('controller/reg_case_stories_view');?>">Case Stories</a> </li> </ul> </li> <li> <a href="<?php echo site_url('controller/reg_news_view');?>">News</a> </li> <li class="divider"></li> <li> <a href="<?php echo site_url('controller/add_product');?>">Add New Product</a> </li> <li class="divider"></li> <li> <a href="<?php echo site_url('controller/product_list');?>">Product List</a> </li> <li class="divider"></li> <li> <a href="<?php echo site_url('controller/po_list');?>">View All PO</a> </li> </ul> </div> <!-- /.navbar-collapse --> </nav> <div id="page-wrapper"> <div class="container-fluid"> <!-- Page Heading --> <div class="row"> <div class="col-lg-12"> <!-- <h1 class="page-header"> Dashboard <small>Statistics Overview</small> </h1> <ol class="breadcrumb"> <li class="active"> <i class="fa fa-user" aria-hidden="true"></i> Manage Users </li> </ol>--> </div> </div> <!-- /.row --> <div class="row"> <section class="row"> <div class="col-sm-8"> <h1> News and Events </h1> </div> <div class="col-sm-2"></div> </section> <div class="row"> <div class="col-sm-12"> <?php if($news !="") { $cnt=1; foreach($news as $new) { ?> <div class=" n-tabs new_events"> <h4><?php echo $cnt++.".";echo $new->news_title;?></h4> <p><?php echo $new->news_description;?></p> <?php if( $new->url !="") { ?> <i class="fa fa-newspaper-o" aria-hidden="true"></i> <a target=" target_blank" href="<?php echo $new->url;?>">External Link</a>             <?php }?> <i class="fa fa-newspaper-o" aria-hidden="true"></i> <a target=" target_blank" href="<?php echo "http://localhost/yaskawa/".$new->attachment;?>">View Attachment</a> <hr> </div> <?php } }?> </div> </div> </div> <?php $ci =& get_instance(); $base_url = base_url(); ?> </div> <!-- /.row end--> </div> <!-- /.container-fluid --> </div> <!-- /#page-wrapper --> <!-- /#wrapper --> </div> <!-- /.container-fluid --> </div> <!-- /#page-wrapper --> </body> </html> <!-- Bootstrap Core JavaScript --> <script src="<?php echo base_url('admin_assets/js/bootstrap.min.js');?>"></script> <script src="<?php echo base_url('admin_assets/js/plugins/morris/raphael.min.js');?>"></script> <script src="<?php echo base_url('admin_assets/js/plugins/morris/morris.min.js');?>"></script> <script src="<?php echo base_url('admin_assets/js/plugins/morris/morris-data.js');?>"></script>