コード例 #1
0
function SelectPOS()
{
    $data = '
		<div id="dialog-form">
		    <fieldset>
		    	<table class="dialog-form-table">
					<tr>
						<td style="width: 170px;"><label for="obj_id">აირჩიეთ სალარო</label></td>
						<td>
							<select id="obj_id" class="idls">' . GetObjectList() . '</select>
						</td>
					</tr>
				</table>
	        </fieldset>
	    </div>';
    return $data;
}
コード例 #2
0
function GetPage($res = '')
{
    $image = $res[image];
    if (empty($image)) {
        $image = '0.jpg';
    }
    $data = '
	<div id="dialog-form">
	    <fieldset style="width: 400px; float: left;">
	    	<legend>ძირითადი ინფორმაცია</legend>
	    	
	    	<table class="dialog-form-table">
				<tr>
					<td style="width: 100px;"><label for="obj_id">ობიექტი</label></td>
					<td>
					<select id="obj_id" class="idls">' . GetObjectList() . '</select>
					</td>
				</tr>
				<tr>
					<td style="width: 100px;"><label for="prod_name">დასახელება</label></td>
				 	<td>
						<div class="seoy-row" id="prod_name_seoy">
							<input type="text" id="prod_name" class="idle seoy-address" onblur="this.className=\'idle seoy-address\'" onfocus="this.className=\'activeField seoy-address\'" value="' . $res['name'] . '" />
							<button id="prod_name_btn" class="combobox">prod_name</button>
						</div>
					<td>
				</tr>
				<tr>
					<td style="width: 100px;"><label for="quantity">რაოდენობა</label></td>
					<td>
						<input type="text" class="idle seoy-address" onblur="this.className=\'idle seoy-address\'" onfocus="this.className=\'activeField seoy-address\'" id="quantity" value="" />
					</td>
				</tr>
			</table>
			<!-- ID -->
			<input type="hidden" id="sub_id" value="' . $res['id'] . '" />
        </fieldset>				
    </div>
    ';
    return $data;
}
コード例 #3
0
 *	Client Object List aJax actions
 * ******************************
 */
include '../../../includes/classes/core.php';
$action = $_REQUEST['act'];
$error = '';
$data = '';
$user_id = $_COOKIE['USERID'];
switch ($action) {
    case 'get_add_page':
        $page = GetPage();
        $data = array('page' => $page);
        break;
    case 'get_edit_page':
        $list_id = $_REQUEST['id'];
        $page = GetPage(GetObjectList($list_id));
        $data = array('page' => $page);
        break;
    case 'get_list':
        $count = $_REQUEST['count'];
        $hidden = $_REQUEST['hidden'];
        $local_id = $_REQUEST['local_id'];
        $rResult = mysql_query("SELECT\t\t`client_objects`.`id`,\r\n\t    \t\t\t\t\t\t\t\t\t`client_objects`.`name`,\r\n\t\t\t\t\t\t\t\t\t\t\t`client_objects`.`address`,\r\n\t\t\t\t\t\t\t\t\t\t\t`district_type`.`name`,\r\n\t\t\t\t\t\t\t\t\t\t\t`client_objects`.`contact_person`,\r\n\t\t\t\t\t\t\t\t\t\t\t`client_objects`.`phone_number`\r\n\t\t\t\t\t\t\t\tFROM\t\t`client_objects` \r\n\t\t\t\t\t\t\t\tLEFT JOIN \t`client` ON\t`client_objects`.`client_id` = `client`.`id`\r\n\t\t\t\t\t\t\t\tLEFT JOIN\t`district_type` ON `district_type`.`id`  = `client_objects`.`district_type`\r\n\t\t\t\t\t\t\t\tWHERE\t\t`client`.`id` = '{$local_id}' && `client_objects`.`actived` = 1");
        $data = array("aaData" => array());
        while ($aRow = mysql_fetch_array($rResult)) {
            $row = array();
            for ($i = 0; $i < $count; $i++) {
                /* General output */
                $row[] = $aRow[$i];
                if ($i == $count - 1) {
                    $row[] = '<input type="checkbox" name="check_' . $aRow[$hidden] . '" class="check" value="' . $aRow[$hidden] . '" />';
コード例 #4
0
function SelectPOS()
{
    $arr = GetWarehouseMoney();
    $data = '		
		<div id="dialog-form">
		    <fieldset>
		    	<table class="dialog-form-table">
					<tr>
						<td style="width: 170px;"><label for="obj_id">აირჩიეთ სალარო</label></td>
						<td>
							<select id="obj_id" class="idls">' . GetObjectList() . '</select>
						</td>
					</tr>
				</table>
	        </fieldset>
			<fieldset>
		    	<table class="dialog-form-table">
					<tr>
						<td style="width: 200px;"><label for="pos-money">თანხა <span style="font-weight:bold;">დრაივის</span> სალაროში :</label></td>
						<td><div  id="pos-money" style="display:inline;"></div><span style="font-weight:bold; color:red; font-size:17px; line-height:10px;">' . $arr . '</span> ლ</td>
					</tr>

					<tr>
						
						<td><input type="button" value="არ ვეთანხმები" id="dont-confirm-pos" style="padding:5px 5px;"/> </td>
					</tr>				
				</table>
				<fieldset id="check-failed" style="visibility:hidden;">
					<legend>შენიშვნა</legend>				
					  <table>
						<tr>
						   <td><label for="pos_money_amount">თანხა სალაროში :</label></td>
						   <td><input type="text" id="pos_money_amount" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" /></td>
						<tr>   
						<tr>
						   <td><label for="reason">შენიშვნა :</label></td>
						   <td><textarea id="reason" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" /></td>
						<tr>   
					   </table>
				</fieldset>
	        </fieldset>
	    </div>';
    return $data;
}