403Webshell
Server IP : 210.245.233.93  /  Your IP : 216.73.216.226
Web Server : Apache/2.2.15 (CentOS)
System : Linux webserver2.onesolution.com.hk 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : exec, shell_exec, system, passthru, popen, proc_open, pcntl_exec
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/(Del)eizo.hkosl.com/global/webadmin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/(Del)eizo.hkosl.com/global/webadmin/model_addform.php
<?php
include 'config.php';

// Check if the user is logged in

if ((!isSet($_SESSION['loginname'])) || ($loggin <> '1'))
{
header("Location: login.php");
exit;
}

?>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Content Management System (CMS) - Powered by One Solution Limited</title>

	<script src="//code.jquery.com/jquery-1.10.2.js"></script>
	<link rel="stylesheet" href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
	<script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
	<script type="text/javascript" src="js/jquery.chained.min.js" ></script>
	<script type="text/javascript">
		$(function(){
			$("#series").chained("#region");
		});

		$(function () {
			$("#promote_datefrom").datepicker({
				dateFormat: 'yy-mm-dd'
			});

			$("#promote_dateto").datepicker({
				dateFormat: 'yy-mm-dd'
			});

		});

	</script>

	<style>
		select{
			min-width: 120px;
		}
	</style>
</head>
<body>


<form action="model_add.php" method="post" name="addform" enctype="multipart/form-data">

<table width="800" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td height="70" align="right" valign="middle" class="icontxt"><table border="0" cellpadding="0" cellspacing="0">
      <tr>        
        <td width="50" align="center" style="font-size: 13px;"><input type="image" alt="submit" src="images/iconSave.png" width="32" height="32" border="0"><br>
          &nbsp;Save&nbsp;&nbsp;</td>
        <td width="50" align="center"><a href="model_index.php?region=<?php if(isset($_GET["region"])) echo $_GET["region"]?>&series_code=<?php if(isset($_GET["series_code"])) echo $_GET["series_code"]?>&msg=Cancel"><img src="images/iconCancel.png" alt="Cancel" width="32" height="32" border="0"><br>
          &nbsp;Cancel&nbsp;&nbsp;</a></td>
        <td>&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><span style="float:left;" class="pagetitletxt">&nbsp;&nbsp;<b><img src="images/iconList.jpg" width="48" height="48" align="absmiddle" /> Add Product Model </b></span></td>
  </tr>
  <tr>
    <td align="left" valign="middle"><!-- Content -->

		<table border="0" cellpadding="0" cellspacing="0">

			<tr>
				<td width="180" align="right" valign="top" class='content'>Region</td>
				<td class='content' valign="top">:&nbsp;</td>
				<td class='content'>
					<select name="region" id="region">
						<option value="CN" <?php if(isset($_GET["region"]) && $_GET["region"] == "CN") echo "selected";?>>CN</option>
						<option value="HK" <?php if(isset($_GET["region"]) && $_GET["region"] == "HK") echo "selected";?>>HK</option>
					</select>
					<br><br>
				</td>
			</tr>

			<tr>
				<td width="180" align="right" valign="top" class='content'>Series Code</td>
				<td class='content' valign="top">:&nbsp;</td>
				<td class='content'>
					<select name="series_id" id="series">
					<?php
						$sql = "SELECT * FROM series where status=? and deleted = ? ORDER BY series_code ASC ";
						if (!($sth = $dbh->prepare($sql))) {
							throw new Exception('[' . $sth->errorCode() . ']: ' . print_r($sth->errorInfo()));
						}

						if (!$sth->execute(array("1", "0"))) {
							throw new Exception('[' . $sth->errorCode() . ']: ' . print_r($sth->errorInfo()));
						}

						while ($row = $sth->fetch(PDO::FETCH_ASSOC)) {
							if(isset($_GET["series_code"]) && $_GET["series_code"] == $row{"series_code"}){
								$this_selected = "selected";
							}else{
								$this_selected = "";
							}
							echo '<option value="'.$row{"series_id"}.'" class="'.$row{"region"}.'" '.$this_selected.'>'.$row{"series_code"}.' </option>';
						}
					?>
					</select>
					<br><br>
				</td>
			</tr>

			<tr>
				<td width="180" align="right" valign="top" class='content'>Model Code</td>
				<td class='content' valign="top">:&nbsp;</td>
				<td class='content'>
					<input type="text" class="content" name="model_code" maxlength="100" /><br><span class="msg">Maxlength:100</span>
					<br><br>
				</td>
			</tr>

			<tr>
				<td width="180" align="right" valign="top" class='content'>Fixed Warranty Year</td>
				<td class='content' valign="top">:&nbsp;</td>
				<td class='content'>
					<input type="text" class="content" name="fixed_warranty_year" required/>
					<br><br>
				</td>
			</tr>

			<tr>
				<td width="180" align="right" valign="top" class='content'>Promote Date from</td>
				<td class='content' valign="top">:&nbsp;</td>
				<td class='content' >
					<input type="text" class="content" name="promote_datefrom" id="promote_datefrom" maxlength="100"/>

					to <input type="text" class="content" name="promote_dateto" id="promote_dateto" maxlength="100" />
					<br><br>
				</td>
			</tr>


			<tr>
				<td width="180" align="right" valign="top" class='content'>Free On-site Calibration</td>
				<td class='content' valign="top">:&nbsp;</td>
				<td class='content'>
					<select name="free_mix_color">
						<option value="0">N/A</option>
						<option value="1">Yes</option>
					</select>
					<br><br>
				</td>
			</tr>


			<tr>
				<td width="180" align="right" valign="top" class='content'>Extend Warranty Months</td>
				<td class='content' valign="top">:&nbsp;</td>
				<td class='content'>
					<input type="text" class="content" name="extend_warranty_year" required/>
					<br><br>
				</td>
			</tr>
			<?php
				foreach ($arraylangcode as $langcode => $langname) {
					if($row{"region"} == "HK" && $langcode == "sc"){
						continue;
					}

					if($row{"region"} == "CN" && $langcode == "tc"){
						continue;
					}
				?>
			<tr>
				<td width="180" align="right" valign="top" class='content'>Warranty Detail<br>[<?=$langname?>]</td>
				<td class='content' valign="top">:&nbsp;</td>
				<td class='content'>
					<textarea name="warranty_detail_<?=$langcode?>" style="width:400px; height: 150px;"></textarea>

					<br><br>
				</td>
			</tr>
			<?php } ?>

			<?php
				foreach ($arraylangcode as $langcode => $langname) {
					if($row{"region"} == "HK" && $langcode == "sc"){
						continue;
					}

					if($row{"region"} == "CN" && $langcode == "tc"){
						continue;
					}
				?>
				<tr>
					<td width="180" align="right" valign="top" class='content'>Warranty Detail Extend <br>[<?=$langname?>]</td>
					<td class='content' valign="top">:&nbsp;</td>
					<td class='content'>
						<textarea name="warranty_detail_extend_<?=$langcode?>" style="width:400px; height: 150px;"></textarea>

						<br><br>
					</td>
				</tr>
			<?php } ?>

        </table>
	</td>
  </tr>
</table>
</form>
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit