Example #1
0
?>
<div class="panel-menu">
  <div class="container">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr>
        <td><li item="home">HOME</li>
          <li item="shop">PRODUCT</li>
          <li item="about">ABOUT US</li>
          <li item="contact">CONTACT US</li></td>
        <td></td>
      </tr>
    </table>
  </div>
</div>
<?php 
if ($cookie->Value('ACCESS')) {
    ?>
<div class="panel-nav">
  <div class="container">
    <li>CONTROL PANEL</li>
  </div>
</div>
<?php 
}
?>
<div class="panel-component">
  <?php 
if (!$cookie->Value('ACCESS')) {
    ?>
  <div style="background: url(../images/dark_wood.jpg?1401782036) repeat center top;text-align: center;position: relative; height:400px;"></div>
  <?php 
Example #2
0
<?php

$control = new Session();
$database = new SyncDatabase();
$money = ini::SettingArray('default.ini');
$_SERVER['REQUEST_TIME'];
$control->Value('USER_RENTAL');
$idContract = date('y', $_SERVER['REQUEST_TIME']);
?>
<div align="right" id="event_main">
<input type="button" id="action_regis" class="button" title="<?php 
echo _IMAGE_TAG_REGIS;
?>
" value=" " />
</div>
<br /><div align="left"><h1><?php 
echo _HEAD_LIST_CONTRACT;
?>
</h1></div>
<table align="left" width="100%" border="0" cellspacing="0" cellpadding="0" style="border-top:#999 dashed 1px;">
  <tr>
    <td align="center"><div>&nbsp;</div>
      <table align="left" width="100%" border="0" cellspacing="0" cellpadding="3" id="list-user">
        <tr style="background-color:#666;color:#FFF;">
          <td width="100" align="center" id="head-text"><strong><?php 
echo _CONTRACT_NUMBER;
?>
</strong></td>
          <td width="140" align="center"><strong><?php 
echo _CONTRACT_FULLNAME;
?>
Example #3
0
					dataType: 'html',
					success: function(data){ alert('Save Complated.') },
				});
			});
        });
        </script>
		<style type="text/css">
        .store_dir { width:250px; }
        .btn_save { width:80px; font-size:11px; }
        .btn_psp { width:160px; font-weight:bold; font-size:11px; }
        </style>
        <table width="580" border="0" cellspacing="0" cellpadding="0" style="color:#333; position:fixed; background-color:#FFF;">
          <tr>
            <td width="75"><strong>PSP Store: </strong></td>
            <td width="260"><input type="text" id="store" class="store_dir" value="<?php 
        echo $session->Value('DIR_STORE');
        ?>
" /></td>
            <td valign="top">
             <input type="button" class="btn_psp" value="Run Scripts" />
             <input type="button" class="btn_save" value="Save" />
            </td>
          </tr>
        </table>
		<div style="height:25px;"></div>
        <div id="loader">&nbsp;</div>
		<?php 
        break;
}
?>
<!--
Example #4
0
<?php

$control = new Session();
$database = new SyncDatabase();
if (isset($_GET['action']) && isset($_POST['register_apply'])) {
    $customer = $database->Value('customer', array('cus_id' => $_REQUEST['regis_customer']), 0);
    $object = $database->Value('object_rental', array('object_id' => $_REQUEST['regis_object']), 0);
    $type = $database->Value('object_type', array('type_id' => $object['type_id']), 0);
    $user = $database->Value('employee', array('username' => $control->Value('USER_RENTAL')), 0);
    $newContract = array('cus_id' => $_REQUEST['regis_customer'], 'emp_id' => $user['emp_id'], 'object_id' => $_REQUEST['regis_object'], 'cost' => $type['rentalcost'], 'deposite' => $type['rentalcost'] * 3, 'signup_date' => $_REQUEST['timestamp_signup'], 'expire_date' => $_REQUEST['timestamp_expire']);
    $database->Insert('contract', $newContract);
    $idContract = $database->Value('contract', array('signup_date' => $_REQUEST['timestamp_signup']), 0);
    $newPayment = array('contract_id' => $idContract['contract_id'], 'amount' => $type['rentalcost'] * 3, 'pay_date' => $_REQUEST['timestamp_signup']);
    $database->Insert('payment', $newPayment);
    $database->Update('object_rental', array('status_object' => 1), array('object_id' => $object['object_id']));
    ?>
<table width="100%" cellpadding="5" cellspacing="0" border="0">
    <tr>
      <td width="180" align="center" valign="top" style="border-right:#CCC dashed 1px;">
       <input type="button" name="register_pay" id="register_pay" value=" " title="<?php 
    echo _IMAGE_TAG_PAY;
    ?>
"  />
       <input type="button" name="register_success" id="register_success" value=" " title="<?php 
    echo _IMAGE_TAG_BACK;
    ?>
"  />
      </td>
      <td align="left" valign="top">
       <h4><?php 
    echo _REGISTER_CUSTOMER_ADD;
Example #5
0
<?php

$control = new Session();
$database = new SyncDatabase();
if (!$control->Value('USER_RENTAL') && !isset($_POST['login_submit'])) {
    ?>
<center><table width="800" border="0" cellspacing="0" cellpadding="20" bgcolor="#FFFFFF" style="border-left:#cfcfcf solid 1px; border-right:#cfcfcf solid 1px; border-bottom:#cfcfcf solid 1px;">
  <tr>
    <td height="100" align="center" valign="top"><img src="images/Logo.png" width="620" height="100" border="0" />
    </td>
  </tr>
  <tr>
    <td valign="top"><div align="center"><table width="375" border="0" cellspacing="0" cellpadding="0" class="login-card">
      <tr><td id="module_ablove"></td></tr>
      <tr>
        <td id="module_main" align="center">
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="160" align="center" valign="top" id="user_picture">
                <img id="image_user" src="images/employee/user_none.jpg" width="110" height="128" border="0" />
              </td>
              <td align="left" valign="top" id="login_form">
               <div align="left" style="font-weight:bold; font-size:12px; background:url(images/module_line.png) -15px 25px no-repeat; width:180px; height:25px; padding:5px">
			   <?php 
    echo _INPUT_TITLE;
    ?>
</div>
               <form name="login-form" id="login-form" method="post" action="<?php 
    echo $control->Value('LOGIN_VAILD');
    ?>
">
     }
 }
 // Room Check Warning.
 $vaildRoom = false;
 foreach ($database->Query("SELECT * FROM table_timetable WHERE room_id={$table['room_id']} AND term={$_REQUEST['term']} AND year={$_REQUEST['year']} AND wday={$table['wday']};") as $found) {
     if ($table['table_id'] != $found['table_id']) {
         $block1_l = $table['period'];
         $block1_r = $table['period'] + $table['range'];
         $block2_l = $found['period'];
         $block2_r = $found['period'] + $found['range'];
         if ($block1_l >= $block2_l && $block1_l < $block2_r || $block1_r <= $block2_r && $block1_r > $block2_l || $block2_l >= $block1_l && $block2_r <= $block1_r) {
             $vaildRoom = $found['class_id'];
         }
     }
 }
 if ($session->Value('USER')) {
     $isBlock .= '" ondblclick="partStudy(' . $table['table_id'] . ',' . $table['class_id'] . ',' . $table['science_id'] . ',' . $table['room_id'] . ',';
     $isBlock .= $table['teacher_id'] . ',' . $table['wday'] . ',' . $table['period'] . ',' . $table['range'] . ',' . $table['term'] . ',' . $table['year'] . ')">';
 } else {
     $isBlock .= '">';
 }
 if ($table['science_id'] != 0 || $table['teacher_id'] != 0 || $table['room_id'] != 0) {
     $isBlock .= '<div class="text_science">' . $science['science'] . '</div>';
     if (isset($_REQUEST['view_teach'])) {
         $isBlock .= '<div class="text_teacher">' . _TABLE_CL . $class['school_id'] . '/' . $class['class'] . '</div>';
     } else {
         $isBlock .= '<div class="text_teacher" ';
         if ($vaildTeacher) {
             $inClass = $database->Query("SELECT * FROM class WHERE class_id={$vaildTeacher} LIMIT 1");
             $isBlock .= 'title="' . _STUDY_DIFIN . $inClass['school_id'] . '/' . $inClass['class'] . '" ';
         }
Example #7
0
</script>
</head>
<body>
<div id="manga_background">
  <div style="background-color:#5b5b5b;">
    <div id="manga_bar"></div>
  </div>
  <table id="manga_body" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td id="manga_menu"><div id="manga_logo"><?php 
$session = new Session();
$database = new SyncDatabase();
?>
        </div>
        <span <?php 
if ($session->Value('USER')) {
    echo 'style="display:none;"';
}
?>
><a href="?component=access&mode=in"><span class="step_list"><?php 
echo _LOGIN_LOGIN;
?>
</span></a></span>  
        <div id="level1">
            <h4><?php 
echo _MENU_FIND;
?>
</h4>
            <a href="?component=timetable_student_find"><span class="step_list"><?php 
echo _MENU_STABLE;
?>
<div style="background-color:#000; height:40px;"><?php 
$session = new Session();
$database = new SyncDatabase();
?>
</div>
<table align="center" width="786" border="0" cellspacing="0" cellpadding="0" class="main_frame">
  <tr><td colspan="3" background="images/border_top.png" class="frame_border"></td></tr><tr><td class="frame_lr"></td>
    <td>
      <div class="frame_header">
      <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
        <td width="50%" valign="bottom"><img src="images/logoHeader.jpg" border="0" width="330" height="52" hspace="20" style="margin-bottom:10px;" /></td>
          <td width="50%" valign="top" align="right">
            <div id="login_frame">
             <div id="login_register" <?php 
if ($session->Value('USER')) {
    echo 'style="display:none;"';
}
?>
>
               <span class="login_menu"><a onclick="$('#login_form').popupOpen();$('#username').focus()"><?php 
echo _LOGIN_LOGIN;
?>
</a></span>
               <span class="login_menu"><a onclick="$('#register_form').popupOpen()" style="color:#00a0e9;"><?php 
echo _LOGIN_REGISTER;
?>
</a></span>
               <span style="border-left:#D3D3D3 solid 1px;"></span>
             </div>
             <div id="login_user" <?php