Server IP : 103.53.40.154 / Your IP : 3.144.109.159 Web Server : Apache System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : ppcad7no ( 715) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home2/ppcad7no/adisgauges.com/admin/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php require_once("../includes/dbsmain.inc.php"); ob_start(); $reg_id=$_REQUEST['reg_id']; if(is_post_back()) { if(!empty($reg_id)){ $category_url=ami_crete_url($reg_name); ////////////****************** IMAGE RESIZING START HERE *****************************// //********** Code Created By Amitabh Kumar Sinha : Web Developer : Webkey Network Pvt. Ltd. *****************// //********** DATE : 31:07:2014 *****************// //------------FUNCTION TO GET IMAGE EXTENSION START---------------// function getExtension($str) { $i = strrpos($str,"."); if (!$i) { return ""; } $l = strlen($str) - $i; $ext = substr($str,$i+1,$l); return $ext; } //------------FUNCTION TO GET IMAGE EXTENSION END---------------// ////////////****************** IMAGE RESIZING END HERE *****************************// $editsql="update tbl_registration set reg_name='$reg_name', reg_email='$reg_email', reg_mobile_no='$reg_mobile_no', reg_pass='$reg_pass', reg_address='$reg_address', reg_country='$reg_country', reg_state='$reg_state', reg_city='$reg_city', reg_zip_code='$reg_zip_code', reg_status='$reg_status' where reg_id='$_REQUEST[reg_id]'"; db_query($editsql); set_session_msg("Member Updated Successfully !"); header("location:manage_member.php"); exit; }else{ $category_url=ami_crete_url($reg_name); ////////////****************** IMAGE RESIZING START HERE *****************************// //********** Code Created By Amitabh Kumar Sinha : Web Developer : Webkey Network Pvt. Ltd. *****************// //********** DATE : 31:07:2014 *****************// //------------FUNCTION TO GET IMAGE EXTENSION START---------------// function getExtension($str) { $i = strrpos($str,"."); if (!$i) { return ""; } $l = strlen($str) - $i; $ext = substr($str,$i+1,$l); return $ext; } //------------FUNCTION TO GET IMAGE EXTENSION END---------------// ////////////****************** IMAGE RESIZING END HERE *****************************// $testsql="insert into tbl_registration set reg_name='$reg_name', reg_email='$reg_email', reg_mobile_no='$reg_mobile_no', reg_pass='$reg_pass', reg_address='$reg_address', reg_country='$reg_country', reg_state='$reg_state', reg_city='$reg_city', reg_zip_code='$reg_zip_code', reg_status='$reg_status' reg_add_date=now()"; db_query($testsql); set_session_msg("Member Added Successfully !"); header("location:manage_member.php"); exit; } } if($reg_id!='') { $result = db_query("select * from tbl_registration where reg_id = '$reg_id'"); if ($line_raw = mysqli_fetch_array($result)) { @extract($line_raw); } } ?> <script src="ckeditor/ckeditor.js"></script> <style> p.fck { width: 90%; float:left; margin: 0 auto; } </style> <link href="styles.css" rel="stylesheet" type="text/css"> <?php include("top.inc.php");?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td id="pageHead"><div id="txtPageHead">Add/Edit Member</div></td> </tr> </table> <div align="right"><a href="manage_member.php" style="font-size:12px; font-weight:bold; margin-right:15px;">Back to Member List</a> </div> <form name="form1" method="post" enctype="multipart/form-data"> <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0" class="tableForm"> <tr> <td width="20%" class="tdLabel"> </td> <td width="80%" class="tdData" style="padding-left:7px;"><strong><font color="red"> <?=display_sess_msg();?> </font></strong></td> </tr> <tr> <td width="20%" class="tdLabel" style="font-size:12px; padding:7px;">Name:</td> <td width="80%" class="tdData" style="font-size:12px; padding:7px;"><input name="reg_name" style="width:350px; height:28px;" type="text" id="reg_name" value="<?=$reg_name?>" class="textfield" ></td> </tr> <tr> <td width="20%" class="tdLabel" style="font-size:12px; padding:7px;">Email:</td> <td width="80%" class="tdData" style="font-size:12px; padding:7px;"><input name="reg_email" style="width:350px; height:28px;" type="text" id="reg_email" value="<?=$reg_email?>" class="textfield" ></td> </tr> <tr> <td width="20%" class="tdLabel" style="font-size:12px; padding:7px;">Mobile No.:</td> <td width="80%" class="tdData" style="font-size:12px; padding:7px;"><input name="reg_mobile_no" style="width:350px; height:28px;" type="text" id="reg_mobile_no" value="<?=$reg_mobile_no?>" class="textfield" ></td> </tr> <tr> <td width="20%" class="tdLabel" style="font-size:12px; padding:7px;">Password:</td> <td width="80%" class="tdData" style="font-size:12px; padding:7px;"><input name="reg_pass" style="width:350px; height:28px;" type="text" id="reg_pass" value="<?=$reg_pass?>" class="textfield" ></td> </tr> <tr> <td width="20%" class="tdLabel" style="font-size:12px; padding:7px;">Address:</td> <td width="80%" class="tdData" style="font-size:12px; padding:7px;"><input name="reg_address" style="width:350px; height:28px;" type="text" id="reg_address" value="<?=$reg_address?>" class="textfield" ></td> </tr> <tr> <td width="20%" class="tdLabel" style="font-size:12px; padding:7px;">Country:</td> <td width="80%" class="tdData" style="font-size:12px; padding:7px;"><input name="reg_country" style="width:350px; height:28px;" type="text" id="reg_country" value="<?=$reg_country?>" class="textfield" ></td> </tr> <tr> <td width="20%" class="tdLabel" style="font-size:12px; padding:7px;">State:</td> <td width="80%" class="tdData" style="font-size:12px; padding:7px;"><input name="reg_state" style="width:350px; height:28px;" type="text" id="reg_state" value="<?=$reg_state?>" class="textfield" ></td> </tr> <tr> <td width="20%" class="tdLabel" style="font-size:12px; padding:7px;">City:</td> <td width="80%" class="tdData" style="font-size:12px; padding:7px;"><input name="reg_city" style="width:350px; height:28px;" type="text" id="reg_city" value="<?=$reg_city?>" class="textfield" ></td> </tr> <tr> <td width="20%" class="tdLabel" style="font-size:12px; padding:7px;">Zip Code:</td> <td width="80%" class="tdData" style="font-size:12px; padding:7px;"><input name="reg_zip_code" style="width:350px; height:28px;" type="text" id="reg_zip_code" value="<?=$reg_zip_code?>" class="textfield" ></td> </tr> <!-- <tr> <td class="tdLabel" style="font-size:12px; padding:7px;">Description:</td> <td class="tdData" style="font-size:12px; padding:7px;"><p class="fck"> <textarea cols="80" id="editor1" name="test_description" rows="10"><?=$test_description?> </textarea> <script> // Replace the <textarea id="editor"> with an CKEditor // instance, using default configurations. CKEDITOR.replace( 'editor1', { uiColor: '#ACACAC', toolbar: [ [ 'Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink' ], [ 'FontSize', 'TextColor', 'BGColor' ] ] }); </script> </p></td> </tr> --> <tr> <td class="tdLabel" style="font-size:12px; padding:7px;">Status:</td> <td class="tdData" style="font-size:12px; padding:7px;"><select name="reg_status" style="width:200px; height:26px;"> <option value="Active" <?php if($reg_status=='Active'){ ?> selected="selected" <? } ?>>Active</option> <option value="Inactive" <?php if($reg_status=='Inactive'){ ?> selected="selected" <? } ?>>Inactive</option> </select></td> </tr> <tr> <td class="tdLabel" style="font-size:12px; padding:7px;"> </td> <td class="tdData" style="font-size:12px; padding:7px;"> <input type="image" name="imageField" src="images/buttons/submit.gif" style="width:100px; margin-bottom:25px;" /></td> </tr> </table> </form> <?php include("bottom.inc.php");?>