kohjhjhصثقص5572hjkhk7872ثقصثقgdfgdg
Ele57885fddfg872782782782 hjkhj782dfgfghgقفغفغفقhfg555434536
/
home4
/
kisgavwq
/
gpplenergy.com
/
gpadmin
/
includes
/
Upload FileeE
HOME
<?php $required = "<font color='#FF0000' size='1'>*</font>"; $fdata = array(); $conn = mysqli_connect(SYSTEM_DBHOST,SYSTEM_DBUSER,SYSTEM_DBPWD,SYSTEM_DBNAME); /*************************************/ if ($_POST['act'] == 'addclient') { $date = date("Y-m-d", strtotime($_POST['dob'])); //GET DATA $title = mysqli_real_escape_string($conn, ($_REQUEST['title'])); /*$details = mysql_real_escape_string($_REQUEST['details']); $txadesc = mysql_real_escape_string($_REQUEST['txadesc']);*/ if($_REQUEST['menu_link']!="") { $readmore_link = inText($_REQUEST['menu_link']); } else{ $readmore_link= inText($_REQUEST['menu_page_id']); } $dt = date('Y-m-d'); $sql = "INSERT INTO `tbl_quicklink` SET `link_name`='$title',link_url='$readmore_link',`created_date`='$dt',`update_date`='$dt' "; // print $sql;exit; $rs = mysqli_query($conn, $sql); $msg = "Record Added Successfully."; print "<script>"; print "self.location = 'manage_quicklink.php?msg=$msg';"; print "</script>"; } ?> <div class="content_header"> <div class="heading flleft">Add New Footer Quick Link</div> <div class="heading flright"><a href="<?=$_curpage?>">« Back</a></div> </div> <div class="bodycontent"> <form name="form1" method="post" action="" enctype="multipart/form-data" onsubmit="return validate();"> <input type="hidden" name="act" value="addclient"> <div id="validation_div" class="validation_error"></div> <table width="100%" cellpadding="3" cellspacing="0" border="0" align="center"> <tr> <td align="left" class="label">Title <?=$required?></td> <td align="center">:</td> <td align="left"><input type="text" name="title" size="50" required="" /></td> </tr> <tr> <td align="left" class="label">Select Page</td> <td>:</td> <td><select name="menu_page_id"> <option value="0">Select Page</option> <?php $page_res = $pageObj->getPageNames(); for($i=0;$i<$page_res['NO_OF_ITEMS'];$i++) { $page_id = $page_res['oDATA'][$i]['page_id']; $page_name = stripslashes($page_res['oDATA'][$i]['page_name']); if($menu_page==$page_id) { echo '<option value="'.$page_id.'" selected="selected">'.$page_name.'</option>'; } else { echo '<option value="'.$page_id.'">'.$page_name.'</option>'; } } ?> </select> </td> </tr> <tr> <td> </td> <td> </td> <td>OR</td> </tr> <tr> <td align="left" class="label">Enter Link</td> <td>:</td> <td><input type="text" name="menu_link" value="<?=$menu_link?>" size="48"/></td> </tr> <tr> <td colspan="3" align="center"><p><INPUT type="submit" value="Add " class="button" /></p></td> </tr> </table> </form> </div>