| 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/hkosl.com/onegolf/webadmin/ |
Upload File : |
<?php
require_once('check_login.php');
?>
<!DOCTYPE html>
<html>
<head>
<?php require_once('html_head.php'); ?>
<script type="text/javascript" src="js/chosen_v1.4.1/chosen.jquery.min.js"></script>
<link rel="stylesheet" href="js/chosen_v1.4.1/chosen.min.css">
<script type="text/javascript">
$(function () {
$("#date").datepicker({dateFormat:"yy-mm-dd"});
$("#players_id").chosen({search_contains: true});
});
</script>
</head>
<body>
<form action="event_add.php" method="post" name="addform" enctype="multipart/form-data">
<table width="1000" 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: 12px;">
<input type="image" alt="submit" src="images/iconSave.png" width="32" height="32" border="0"><br>
Save </a></td>
<td width="50" align="center">
<a href="event_index.php?msg=4"><img src="images/iconCancel.png" alt="Cancel" width="32" height="32" border="0"><br>
Cancel </a></td>
<td> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="pagetitletxt">
<b><img src="images/iconList.jpg" width="48" height="48" align="absmiddle"/>Add Events</b>
</td>
</tr>
<tr>
<td align="left" valign="middle"><!-- Content -->
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="120" align="right" valign="top" class='content required'>Name</td>
<td class='content' valign="top">: </td>
<td class='content'>
<input type="text" class="content" name="name" required="required" style="width: 500px;"/>
<br><br>
</td>
</tr>
<tr>
<td width="120" align="right" valign="top" class='content required'>Location</td>
<td class='content' valign="top">: </td>
<td class='content'>
<input type="text" class="content" name="location" required="required" style="width: 500px;"/>
<br><br>
</td>
</tr>
<tr>
<td width="120" align="right" valign="top" class='content required'>Date</td>
<td class='content' valign="top">: </td>
<td class='content'>
<input type="text" class="content" name="date" id="date" required="required" style="width: 100px;"/>
<br><br>
</td>
</tr>
<tr>
<td width="120" align="right" valign="top" class='content required'>Max Par</td>
<td class='content' valign="top">: </td>
<td class='content'>
<?php
$max_par_info = get_master_type_code("MAX_PAR", NULL);
foreach($max_par_info as $max_par){
echo '<input type="radio" class="content" name="max_par" value="'.$max_par["code"].'" required="required" /> '.$max_par["name_en"];
}
?>
<br><br>
</td>
</tr>
<tr>
<td width="120" align="right" valign="top" class='content required'>Hole Par</td>
<td class='content' valign="top">: </td>
<td class='content'>
<?php
for($i = 1; $i <= 18; $i++){
echo 'Hole '.$i.' (Male) <input type="text" class="content" name="hole_'.$i.'_par_M" required="required" style="width: 100px;"/> ';
echo '(Female) <input type="text" class="content" name="hole_'.$i.'_par_F" required="required" style="width: 100px;"/> ';
//echo 'Index <input type="text" class="content" name="hole_'.$i.'_index" required="required" style="width: 100px;"/> ';
echo '<input type="checkbox" class="content" name="hole_'.$i.'_count" value="1" checked />Count it?<br><br>';
}
?>
</td>
</tr>
<tr>
<td width="120" align="right" valign="top" class='content required'>Players</td>
<td class='content' valign="top">: </td>
<td class='content'>
<select name="players_id[]" id="players_id" style="width: 100%" multiple="multiple">
<?php
$players_info = get_player();
foreach($players_info as $row){
echo "<option value='".$row["id"]."'>".$row["name"]."</option>";
}
?>
</select>
<br><br>
</td>
</tr>
<tr>
<td width="120" align="right" valign="top" class='content'></td>
<td class='content' valign="top"></td>
<td class='content red'>
<br>
* Required Field
<br><br><br>
</td>
</tr>
</table>
<!-- End Content -->
</td>
</tr>
<tr>
<td align="left" valign="middle"> </td>
</tr>
</table>
</form>
</body>
</html>