Server IP : 127.0.0.2 / Your IP : 3.143.7.75 Web Server : Apache/2.4.18 (Ubuntu) System : User : www-data ( ) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : disk_free_space,disk_total_space,diskfreespace,dl,exec,fpaththru,getmyuid,getmypid,highlight_file,ignore_user_abord,leak,listen,link,opcache_get_configuration,opcache_get_status,passthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,php_uname,phpinfo,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,pclose,popen,proc_open,proc_close,proc_get_status,proc_nice,proc_terminate,shell_exec,source,show_source,system,virtual MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/admin/ |
Upload File : |
<?php ob_start(); session_start(); require_once('session-check.php'); require_once('include/db-config.php'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Joel Levitt, maintenance management, maintenance management consulting, tpms</title> <script language="JavaScript"> function validateform() { if (document.getElementById("productname").value == "" ) { alert("Please select a Product Name"); document.getElementById("productname").focus(); return false; } if(document.getElementById("CategoryName").value == "") { alert("Please select CategoryName"); document.getElementById("CategoryName").focus(); return false; } return true; } </script> <script type="text/javascript" language="javascript"> function validation() { var val = document.getElementById('downloadable').checked; if(val == 1) { document.getElementById("visibilityDiv").style.visibility = "visible"; document.getElementById("visibilityDiv").style.display = "block"; } else { document.getElementById('visibilityDiv').style.visibility = "hidden"; document.getElementById('visibilityDiv').style.display = "none"; } } </script> <script type="text/javascript" language="javascript"> function trailvalidation() { var chkval = document.getElementById('istrialavailable').checked; if(chkval == 1) { document.getElementById("trailvisibility").style.visibility = "visible"; document.getElementById("trailvisibility").style.display = "block"; } else { document.getElementById('trailvisibility').style.visibility = "hidden"; document.getElementById('trailvisibility').style.display = "none"; } } </script> <link href="css/style.css" type="text/css" rel="stylesheet"> </head> <BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0> <!-- ImageReady Slices (maintrainer_slice2.jpg) --> <TABLE WIDTH="100%" BORDER=0 CELLPADDING=0 CELLSPACING=0 align="center"> <?php include_once('include/include_header.php'); ?> <TR> <TD width="100%" align="center"> <table border="0" cellpadding="0" cellspacing="0" width="1100" align="center" class="body_bg" style="border-color:"> <tr><td colspan="3" style="height:9px;"></td></tr> <tr> <td style="width:9px;"></td> <td class="content_bg" valign="top"> <table border="0" cellpadding="0" cellspacing="0" width="95%" align="center"> <tr> <td style="height:40px;"> </td> </tr> <tr> <td> <form action="product-new-action.php" method="post" enctype="multipart/form-data" id="pass" name="pass" onSubmit="return validateform();"> <table border="0" cellpadding="0" cellspacing="0" class="normal_text"> <tr><td class="mainhead" valign="top" colspan="2">ADD NEW PRODUCT</td></tr> <tr><td style="height:10px;"></td></tr> <tr> </tr> <tr><td style="height:20px;"></td></tr> <tr> <td class="textnormal" style="padding-left:20px; padding-right:10px;" valign="top">Product Name</td> <td><input type="text" style="width:400px;" name="productname" id="productname" value=""> </td> </tr> <tr><td style="height:20px;"></td></tr> <tr> <td class="textnormal" style="padding-left:20px; padding-right:10px;" valign="top">Status</td> <td> <select name="status" id="status" style="width:150px;"> <option value="1">Active</option> <option value="0">Inactive</option> <option value="2">Backordered</option> </select> <br><font color="#999999">Only 'Active' status session will be listed in session page</font> </td> </tr> <tr><td style="height:20px;"></td></tr> <tr> <td class="textnormal" style="padding-left:20px; padding-right:10px;" valign="top">Product Categories: </td> <td> <?php // require_once('include/db-config.php'); // $sql="select ID,CategoryName,SortOrder from categories_new"; $sql="select ID,CategoryName,SortOrder from categories_new where CategoryName='Books' "; $result=mysqli_query($conn,$sql); while($row=mysqli_fetch_array($result)) { $CategoryName=$row['CategoryName']; $ID=$row['ID']; ?> <input type="checkbox" name="comp[]" id="<?php echo $CategoryName;?>" value="<?php echo $ID;?>" checked><?php echo $CategoryName;?><br /> <?php } ?> <font color="#999999">Categories are used by the front-end for customer display.</font> </td> </tr> <tr><td style="height:20px;"></td></tr> <tr> <td class="textnormal" style="padding-left:20px; padding-right:10px;" valign="top">Short Description: </td> <td><textarea rows="5" cols="60" name="shortdescription" id="shortdescription"></textarea> <br><font color="#999999">Can contain HTML.</font> </td> </tr> <tr><td style="height:20px;"></td></tr> <tr> <td class="textnormal" style="padding-left:20px; padding-right:10px;" valign="top">Long Description:</td> <td><textarea rows="10" cols="100" name="longdescription" id="longdescription"></textarea></textarea> <br><font color="#999999">Can contain HTML.</font> </td> </tr> <tr><td style="height:20px;"></td></tr> <tr> <td class="textnormal" style="padding-left:20px; padding-right:10px;" valign="top">Amazon URL: </td> <td><input type="text" style="width:400px;" name="thirdpartyurl" id="thirdpartyurl" value=""> <br><font color="#999999">If this field is left blank, customer's will be able to add this product to the maintrainer cart.</font> </td> </tr> <tr><td style="height:20px;"></td></tr> <!-- <tr> <td class="textnormal" style="padding-left:20px; padding-right:10px;" valign="top">Downloadable URL: </td> <td><input type="text" style="width:400px;" name="downloadableurl" id="downloadableurl" value=""> </td> </tr> --> <tr><td style="height:20px;"></td></tr> <!-- <tr> <td class="textnormal" style="padding-left:20px; padding-right:10px;" valign="top">Downloadable: </td> <td><input type="checkbox" name="downloadable" id="downloadable" value="1" onclick="validation();"> <br><font color="#999999">If checked, customer will be able to download above link.</font> </td> </tr> <tr><td style="height:20px;"></td></tr> --> <!-- Is Trial Available--> <tr> <td colspan="2"> <div id="visibilityDiv" style="visibility:hidden; display:none;"> <table border="0" cellpadding="0" cellspacing="0" class="normal_text" width="20%"> <tr> <td class="textnormal" style="padding-left:20px; padding-right:10px;" valign="top">Is Trial Available: </td> <td ><input type="checkbox" name="istrialavailable" id="istrialavailable" value="1" onclick="trailvalidation();"></td> </tr> </table> </div> <!--</td> </tr>--> <!--for trail download--> <!--<tr> <td>--> <div id="trailvisibility" style="visibility:hidden; display:none;"> <table border="0" cellpadding="0" cellspacing="0" class="normal_text" width="100%"> <tr> <td style="padding-left:120px;"></td> <td class="textnormal">Download URL of Trial: <input type="text" style="width:400px;" name="trailurl" id="trailurl" value=""> </td> </tr> </table> </div> </td> </tr> <!--downloadtrail ends--> <tr><td style="height:20px;"></td></tr> <!-- Is Trial Available--> <tr> <td class="textnormal" style="padding-left:20px; padding-right:10px;" valign="top">Original Price: </td> <td><input type="text" style="width:100px;" name="originalprice" id="originalprice" value=""> <br><font color="#999999">Price of one package. DO NOT enter a dollar sign ($)</font> </td> </tr> <tr><td style="height:20px;"></td></tr> <tr> <td class="textnormal" style="padding-left:20px; padding-right:10px;" valign="top">Sale Price: </td> <td><input type="text" style="width:100px;" name="saleprice" id="saleprice" value=""> <br><font color="#999999">Sale Price of one package. If not on sale, this should be the same as original price.<br /> DO NOT enter a dollar sign ($)</font> </td> </tr> <tr><td style="height:20px;"></td></tr> <!-- <tr> <td class="textnormal" style="padding-left:20px; padding-right:10px;" valign="top">Allow Free Sample: </td> <td><input type="checkbox" name="freesample" id="freesample" value="1"> <br><font color="#999999">If checked, customer will be able to order a sample for free, plus shipping.</font> </td> </tr> --> <tr><td style="height:20px;"></td></tr> <tr> <td class="textnormal" style="padding-left:20px; padding-right:10px;" valign="top">Product Photo</td> <td><input type="file" name="imagefile" id="imagefile"/> </td> </tr> <tr><td style="height:20px;"></td></tr> <!-- <tr> <td class="textnormal" style="padding-left:20px; padding-right:10px;" valign="top">Quantity Per Package:</td> <td><input type="text" style="width:100px;" name="quantityperpackage" id="quantityperpackage" value=""> <br><font color="#999999">Quantity in each package or minimum order quantity.</font> </td> </tr> --> <tr><td style="height:20px;"></td></tr> <tr> <td class="textnormal" style="padding-left:20px; padding-right:10px;" valign="top">Sort Order:</td> <td><input type="text" style="width:100px;" name="sortorder" id="sortorder" value=""> </td> </tr> <tr><td style="height:20px;"></td></tr> <tr> <td class="textnormal" style="padding-left:20px; padding-right:10px;" valign="top">Show Meeting Defender Site:</td> <td><input type="checkbox" name="meetingdefender" id="meetingdefender" value="0"> </td> </tr> <tr><td style="height:20px;"></td></tr> <tr> <td class="textnormal"> </td> <td><input type="submit" id="Add" name="Add" value=" Submit " class="bttn"> <input type="hidden" name="imagefile" id="imagefile" /> <input type="button" id="back" name="back" value="Cancel" class="bttn2" onClick="javascript:history.back();"> </td> </tr> <tr><td><br><br></td></tr> </table> </form> </td> </tr> </table> </td> <td style="width:9px;"></td> </tr> <tr><td colspan="3" style="height:9px;"></td></tr> </table> </TD> </TR> <?php include_once('include/include_footer.php'); ?> </TABLE> <!-- End ImageReady Slices --> </BODY> </html>