EVOLUTION-NINJA
Edit File: news_upload.php
<!DOCTYPE HTML> <html lang="en-US"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="X-UA-Compatible" content="IE=Edge" /> <title>Yaskawa</title> <link rel="stylesheet" type="text/css" href="<?php echo base_url('assets/css/main.css');?>" /> <link rel="stylesheet" type="text/css" href="<?php echo base_url('assets/css/bootstrap.min.css');?>" /> <link rel="stylesheet" type="text/css" href="<?php echo base_url('assets/css/font-awesome.min.css');?>" /> <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet"> <script type="text/javascript" src="<?php echo base_url('assets/js/jquery-2.2.4.min.js');?>"></script> <script type="text/javascript" src="<?php echo base_url('assets/js/bootstrap.min.js');?>"></script> </head> <body style="overflow-x:hidden;"> <header class="cf"> <div class="container"> <div class="logo col-sm-4"> <a href="" class="hidden-xs hidden-sm"><img src="<?php echo base_url('assets/img/yaskawa_logo.png');?>" class="img-responsive"></a> <a href="" class="hidden-md hidden-lg"><img src="<?php echo base_url('assets/img/yaskawa_logo2.png');?>" class="img-responsive center-block"></a> </div> <div class="navigation col-sm-8"> <nav> <a href="javascript:void(0)" class="smobitrigger ion-navicon-round"><span>Menu</span></a> <ul class="mobimenu"> <?php if($details->role == 2) { if($details->department == 4) {?> <li class="dropdown"> <a href="" class="dropdown-toggle active" data-toggle="dropdown">Information <span class="glyphicon glyphicon-chevron-down"></span> </a> <ul class="dropdown-menu multi-column-dropdown"> <li><a href="<?php echo site_url('controller/inventory_import');?>">Stock Updates</a></li> <li><a href="<?php echo site_url('controller/po_import');?>">PO Acknowledgemets</a></li> </ul> </li> <li><a href="<?php echo site_url('controller/news');?>">News</a></li>                       <?php }elseif($details->department == 5) {?> <li class="dropdown"> <a href="" class="dropdown-toggle" data-toggle="dropdown">Financials <span class="glyphicon glyphicon-chevron-down"></span> </a> <ul class="dropdown-menu multi-column-dropdown"> <li><a href="<?php echo site_url('controller/outstanding_statement');?>">Outstanding Statement</a></li> <li><a href="<?php echo site_url('controller/overdue_statement');?>">Overdue Statement</a></li> <li><a href="<?php echo site_url('controller/c_forms');?>">C forms</a></li> </ul> </li> <li><a href="<?php echo site_url('controller/news');?>" class="active">News</a></li>                       <?php }elseif($details->department == 6) {?> <li class="dropdown"> <a href="" class="dropdown-toggle" data-toggle="dropdown">Technical Support <span class="glyphicon glyphicon-chevron-down"></span> </a> <ul class="dropdown-menu multi-column-dropdown"> <li><a href="<?php echo site_url('controller/drive_mannual_upload');?>">Drive Catalogues</a></li> <li><a href="<?php echo site_url('controller/case_stories_upload');?>">Case Stories</a></li> </ul> </li> <li><a href="<?php echo site_url('controller/news');?>" class="active">News</a></li>                       <?php }elseif($details->department == 7) {?> <li><a href="<?php echo site_url('controller/news_upload');?>" class="active">News</a></li> <?php } } elseif ($details->role == 3) {?> <li class="dropdown"> <a href="" class="dropdown-toggle active" data-toggle="dropdown">Information <span class="glyphicon glyphicon-chevron-down"></span> </a> <ul class="dropdown-menu multi-column-dropdown"> <li><a href="<?php echo site_url('controller/stock_updates');?>">Stock Updates</a></li> <li><a href="<?php echo site_url('controller/po_acknowledgemets');?>">PO Acknowledgemets</a></li> </ul> </li> <li class="dropdown"> <a href="" class="dropdown-toggle" data-toggle="dropdown">Financials <span class="glyphicon glyphicon-chevron-down"></span> </a> <ul class="dropdown-menu multi-column-dropdown"> <li><a href="<?php echo site_url('controller/outstanding_statements_display');?>">Outstanding Statement</a></li> <li><a href="<?php echo site_url('controller/overdue_statements_display');?>">Overdue Statement</a></li> <li><a href="<?php echo site_url('controller/c_forms_display');?>">C forms</a></li> </ul> </li> <li class="dropdown"> <a href="" class="dropdown-toggle" data-toggle="dropdown">Technical Support <span class="glyphicon glyphicon-chevron-down"></span> </a> <ul class="dropdown-menu multi-column-dropdown"> <li><a href="<?php echo site_url('controller/drive_catalogues');?>">Drive Catalogues</a></li> <li><a href="<?php echo site_url('controller/case_stories');?>">Case Stories</a></li> </ul> </li> <li><a href="<?php echo site_url('controller/news');?>" >News</a></li>                       <?php }?> <ul class="navbar-right"> <li><a href="<?php echo site_url('controller/profile');?>">Profile</a></li> <li><a href="<?php echo site_url('controller/logout');?>">Logout</a></li> </ul> </ul> </nav> </div> </div> </header> <!----------------------- slider-----------------------------------------------------------> <div class="news_img"> <img src="<?php echo base_url('assets/img/banner-news.png');?>" alt="First slide" class="img-responsive"> </div> <!----------------------- Banner End------------------------------------------------------------> <div class="news-page" id="news-top-pad"> <div class="container"> <h3>News & Events</h3> <div class="col-md-2"></div> <form action="<?php echo site_url('controller/news_insert');?>" class="form-horizontal col-md-8 " method="post" enctype="multipart/form-data"> <div class="form-group"> <label class="control-label col-sm-2" for="title">Title</label> <div class="col-sm-10"> <input type="text" class="form-control" name="title" id="n_title" placeholder="" required> </div> </div> <div class="form-group"> <label class="control-label col-sm-2" for="des">Description</label> <div class="col-sm-10"> <textarea class="form-control" rows="5" id="comment" name="desc" max-lenght:5 required></textarea> </div> </div> <div class="form-group"> <label class="control-label col-sm-2" for="pwd">URL</label> <div class="col-sm-10"> <input type="url" class="form-control" name="url" id="n_title" placeholder="" > </div> </div> <div class="form-group"> <label class="control-label col-sm-2" for="pwd">Attachment</label> <div class="col-sm-10"> <input type="file" class="form-control" name="file" id="file" placeholder="" > </div> </div> <div class="form-group"> <div class="col-sm-offset-2 col-sm-10"> <button type="submit" class="btn btn-default pull-right">Submit</button> </div> </div> </form> <div class="col-md-2"></div> </div> <!-- container --> </div> <div class="news-page" id="news-top-pad"> <div class="container"> <h3>News & Events</h3> <?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> <p align="right"><a href="<?php echo site_url('controller/deletenews?id='.$new->news_id)?>">Remove</a></p><hr> </div> <?php } }?> </div> <!-- container --> </div> <style> .new_events i { color:#4eabf9; font-weight:700; } .new_events a { color:black; } .new_events p { color:black; padding-left:35px; padding-bottom:10px; } .n-tabs { padding:15px 15px; } </style> <!-- ---------------- News Paper END --> <div class="height-50"></div> <footer class=" navbar-fixed-bottom"> <div class="top-bg"> <div class="container"> <ul class="top_marqu"> <li><a href="tel:+91-9731676611"><i class="fa fa-mobile" aria-hidden="true"></i> : +91 9731676611</a></li> <li><a href="mailto:services@yaskawa.in"><i class="fa fa-envelope-o" aria-hidden="true"></i> : services@yaskawa.in</a></li> <li><a href=""> | </a></li> <li><a href="tel:+91-9711351351">North <i class="fa fa-mobile" aria-hidden="true"></i> : +91 9711351351</a></li> <li><a href="tel:+91-9620512399">South <i class="fa fa-mobile" aria-hidden="true"></i> : +91 9620512399</a></li> </ul> </div> </div> </footer> </body> </html> <!---------- Navigation -----------------------> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" type="text/css" href="http://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css"> <link rel="stylesheet" type="text/css" href="<?php echo base_url('assets/css/simpleMobileMenu.css');?>" /> <script src="<?php echo base_url('assets/js/simpleMobileMenu.js');?>"></script> <script type="text/javascript"> jQuery(document).ready(function($) { $('.smobitrigger').smplmnu(); }); </script> <!---------------- Menu Drodown ---------------------> <script type="text/javascript"> jQuery(document).ready(function($) { $('.mobimenu li.dropdown').hover(function() { $(this).find('.dropdown-menu').stop(true, true).delay(200).fadeIn(500); }, function() { $(this).find('.dropdown-menu').stop(true, true).delay(200).fadeOut(500); }); }); </script> <style> .login-head { background:#3c5a98; padding-bottom:10px; padding-top:10px; } .login-footer { background:#3c5a98; padding-bottom:10px; padding-top:15px; color:white; text-align:center; } .login-head label { color:white !important; } .login-head a { font-size:12px; color:white; } .lgn-btn { margin-top:5px; } </style> <!---- http://bootsnipp.com/snippets/featured/bootstrap-carousel-with-text slider reference---------------------> <style> .carousel-indicators .active { background-color: #2980b9; } .carousel-inner img { width: 100%; max-height: 500px } .carousel-control { width: 0; } .carousel-control.left, .carousel-control.right { opacity: 1; filter: alpha(opacity=100); background-image: none; background-repeat: no-repeat; text-shadow: none; } .carousel-control.left span { padding: 15px; } .carousel-control.right span { padding: 15px; } .carousel-control .glyphicon-chevron-left, .carousel-control .glyphicon-chevron-right, .carousel-control .icon-prev, .carousel-control .icon-next { position: absolute; top: 45%; z-index: 5; display: inline-block; } .carousel-control .glyphicon-chevron-left, .carousel-control .icon-prev { left: 0; } .carousel-control .glyphicon-chevron-right, .carousel-control .icon-next { right: 0; } .carousel-control.left span, .carousel-control.right span { //background-color: #000; } .carousel-control.right span { margin-right: 16px; } .carousel-control.left span:hover, .carousel-control.right span:hover { opacity: .7; filter: alpha(opacity=70); } /* Carousel Header Styles */ .header-text { position: absolute; top: 20%; left: 1.8%; right: auto; width: 96.66666666666666%; color: #fff; } .header-text h2 { font-size: 40px; } .header-text h2 span { background-color: #2980b9; padding: 10px; } .header-text h3 span { background-color: #000; padding: 15px; } .btn-min-block { min-width: 170px; line-height: 26px; } .btn-theme { color: #fff; background-color: transparent; border: 2px solid #fff; margin-right: 15px; } .btn-theme:hover { color: #000; background-color: #fff; border-color: #fff; } </style> <!---------- news style---> <style> .news-1 { background: #F0F0F0 !important; min-height:300px; } .news_cont { padding-bottom:25px; } .news-1 img { min-height:300px; } .news-1 { padding-left: 0 !important; } #news-top-pad { //padding-top:25px; padding-bottom:30px; } #news-top-pad h3{ color: #0065b3; font-weight: 600; border-bottom: 1px solid silver; padding-bottom: 10px; } .news-right-content h3 { font-weight:700; } .sub-title { color:#283D74; font-size:18px; } .date { color: #928787; font-size: 17px; } .read_more { padding-top:15px; fonnt-weight:800; padding-bottom:10px; font-size: 17px; } @media only screen and (min-width:320px) and (max-width:640px) { .news-1 { padding-left: 15px !important; } } </style>