本文整理汇总了PHP中Gettask_type函数的典型用法代码示例。如果您正苦于以下问题:PHP Gettask_type函数的具体用法?PHP Gettask_type怎么用?PHP Gettask_type使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了Gettask_type函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: session_start
<?php
require_once '../../includes/classes/core.php';
session_start();
$action = $_REQUEST['act'];
$error = '';
$data = '';
$user_id = $_SESSION['USERID'];
switch ($action) {
case 'get_add_page':
$page = GetPage();
$data = array('page' => $page);
break;
case 'get_edit_page':
$task_id = $_REQUEST['id'];
$page = GetPage(Gettask_type($task_id));
$data = array('page' => $page);
break;
case 'get_list':
$count = $_REQUEST['count'];
$hidden = $_REQUEST['hidden'];
$rResult = mysql_query("SELECT \ttask_type.id,\r\n\t\t\t\t\t\t\t\t\t\ttask_type.`name`\r\n\t\t\t\t\t\t\t FROM \ttask_type\r\n\t\t\t\t\t\t\t WHERE \ttask_type.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] . '" />';
}
示例2: GetPage
function GetPage($res = '', $number)
{
$num = 0;
if ($res[phone] == "") {
$num = $number;
} else {
$num = $res[phone];
}
$increm = mysql_query("\tSELECT `name`,\r\n\t\t\t`rand_name`\r\n\t\t\tFROM \t`file`\r\n\t\t\tWHERE `task_id` = {$res['id']}\r\n\t\t\t");
if ($res[call_id] == '') {
$data .= '<div id="dialog-form">
<div style="float: left; width: 500px;">
<fieldset >
<legend>ძირითადი ინფორმაცია</legend>
<table width="100%" class="dialog-form-table">
<tr>
<td style="width: 180px;"><label for="req_num">დავალების №</label></td>
<td style="width: 180px !important;"><label for="req_data">ფორმირების თარიღი</label></td>
<td style="width: 180px;"><label for="req_phone">ტელეფონი</label></td>
</tr>
<tr>
<td style="width: 180px;">
<input type="text" id="id" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField user_id\'" value="' . $res['id'] . '" disabled="disabled" />
</td>
<td style="width: 180px;">
<input type="text" id="c_date" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField date\'" value="' . $res['call_date'] . '" disabled="disabled" />
</td>
<td style="width: 180px;">
<input type="text" id="phone" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['phone'] . '" disabled="disabled" />
</td>
<td style="width: 69px;">
<button class="calls">ნომრები</button>
</td>
</tr>
<tr>
<td style="width: 180px;"><label for="req_num">შესრულების გეგმ. დრო</label></td>
<td style="width: 180px !important;"><label for="req_data">შესრულების ფაქტ. დრო</label></td>
<td style="width: 180px;"><label for="req_phone">შესრულების დრო</label></td>
</tr>
<tr>
<td style="width: 180px;">
<input type="text" id="planned_end_date" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['planned_end_date'] . '" disabled="disabled" />
</td>
<td style="width: 180px;">
<input type="text" id="fact_end_date" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['fact_end_date'] . '" disabled="disabled" />
</td>
<td style="width: 180px;">
<input type="text" id="call_duration" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['call_duration'] . '" disabled="disabled" />
</td>
<td style="width: 69px;">
</td>
</tr>';
$data .= '<table class="dialog-form-table">
<tr>
<td style="width: 180px;"><label for="d_number">დავალების ტიპი</label></td>
<td style="width: 180px;"><label for="d_number">განყოფილება</label></td>
<td style="width: 180px;"><label for="d_number">პასუხისმგებელი პირი</label></td>
</tr>
<tr>
<td style="width: 180px;"><select id="task_type_id" class="idls object"disabled="disabled" disabled="disabled">' . Gettask_type($res['task_type_id']) . '</select></td>
<td style="width: 180px;"><select id="task_department_id" class="idls object"disabled="disabled">' . Getdepartment($res['task_department_id']) . '</select></td>
<td style="width: 180px;"><select id="persons_id" class="idls object" disabled="disabled">' . Getpersonss($res['persons_id']) . '</select></td>
</tr>
<tr>
<td style="width: 180px;"><label for="d_number">პრიორიტეტები</label></td>
<td style="width: 180px;"><label for="d_number">თემა</label></td>
<td style="width: 180px;"></td>
</tr>
<tr>
<td style="width: 180px;"><select id="priority_id" class="idls object" disabled="disabled">' . Getpriority($res['priority_id']) . '</select></td>
<td style="width: 180px;"><select id="template_id" class="idls object" disabled="disabled">' . Gettemplate($res['template_id']) . '</select></td>
<td style="width: 180px;"></td>
</tr>
<tr>
<td style="width: 150px;"><label for="content">კომენტარი</label></td>
<td style="width: 150px;"><label for="content"></label></td>
<td style="width: 150px;"><label for="content"></label></td>
</tr>
<tr>
<td colspan="6">
<textarea style="width: 641px; resize: none;" id="comment" class="idle" name="call_content" cols="300" rows="2" disabled="disabled">' . $res['comment'] . '</textarea>
</td>
</tr>
<tr>
<td style="width: 180px;"><label for="content">საუბრის შინაარსი</label></td>
</tr>
<tr>
<td colspan="6">
<textarea style="width: 641px; resize: none;" id="problem_comment" class="idle" name="call_content" cols="300" rows="2" >' . $res['problem_comment'] . '</textarea>
</td>
</tr>
</table>
//.........这里部分代码省略.........
示例3: GetPage
function GetPage($res = '', $number)
{
$num = 0;
if ($res[phone] == "") {
$num = $number;
} else {
$num = $res[phone];
}
if ($res[id] != '') {
$dis = 'disabled="disabled"';
} else {
$dis = '';
}
if ($res['category_parent_id'] != '') {
$cat_ch = $res['category_parent_id'];
}
$increm = mysql_query("\tSELECT `name`,\r\n\t\t\t\t\t\t\t\t\t`rand_name`\r\n\t\t\t\t\t\t\tFROM \t`file`\r\n\t\t\t\t\t\t\tWHERE `incomming_call_id` = {$res['id']}\r\n\t\t\t");
$call_date = date('Y-m-d H:i:s');
$data .= '
<!-- jQuery Dialog -->
<div id="add-edit-goods-form" title="საქონელი">
<!-- aJax -->
</div>
<div id="dialog-form">
<div style="float: left; width: 673px;">
<fieldset >
<legend>ძირითადი ინფორმაცია</legend>
<table width="100%" class="dialog-form-table">
<tr>
<td style="width: 180px;"><label for="id">მომართვა №</label></td>
<td style="width: 180px !important;"><label for="call_date">თარიღი</label></td>
<td style="width: 180px;"><label for="call_phone">ტელეფონი</label></td>
</tr>
<tr>
<td style="width: 180px;">
<input type="text" id="id" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField user_id\'" value="' . ($res['id'] != '' ? $res['id'] : increment("incomming_call")) . '" disabled="disabled" />
</td>
<td style="width: 180px;">
<input type="text" id="call_date" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField date\'" value="' . ($res['call_date'] != "" ? $res['call_date'] : $call_date) . '" disabled="disabled" />
</td>
<td style="width: 180px;">
<input type="text" id="call_phone" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . ($res['call_phone'] != "" ? $res['call_phone'] : $num) . '" />
</td>
<td style="width: 69px;">
<button id="button_calls" class="calls">ნომრები</button>
</td>
</tr>
<tr>
<td style="width: 180px;"><label for="category_parent_id">კატეგორია</label></td>
<td style="width: 180px;"><label for="category_id">ზარის ტიპი</label></td>
<td colspan="2"><label for="sub_category">ქვე-კატეგოტია</label></td>
</tr>
<tr>
<td style="width: 180px;"><select id="category_parent_id" class="idls object">' . Getcategory($res['category_parent_id']) . '</select></td>
<td style="width: 180px;"><select id="category_id" class="idls object">' . Getcategory1($res['category_parent_id'], $res['category_id']) . '</select></td>
<td colspan="2"><select id="sub_category" style="width: 258px;" class="idls object">' . Getcategory2($res['category_id'], $res['sub_category']) . '</select> </td>
</tr>
</table>
<table width="100%" class="dialog-form-table">
<tr>
<td style="width: 183px;"><label for="call_problem_date">პრობლემის თარიღი</label></td>
<td style="width: 184px;"><label for="call_status">ინფორმაციის წყარო</label></td>
<td style="width: 180px;"><label for="call_object_id">ბიზნეს ცენტრი</label></td>
</tr>
<tr>
<td> <input type="text" id="call_problem_date" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['call_problem_date'] . '" /></td>
<td style="width: 180px;"><select id="call_source_id" class="idls object">' . Getsource($res['call_source_id']) . '</select></td>
<td colspan="2"><select style="width: 258px;" id="call_object_id" class="idls object">' . Getobject($res['call_object_id']) . '</select></td>
</tr>
<tr>
<td style="width: 180px;"><label for="call_content">საუბრის შინაარსი</label></td>
</tr>
<tr>
<td colspan="6">
<textarea style="width: 641px; resize: none;" id="call_content" class="idle" name="call_content" cols="300" rows="4">' . $res['call_content'] . '</textarea>
</td>
</tr>
</table>
</fieldset >
<!-------------------------------------------------------------------დავალება-------------------------------------------------------------------------->
<fieldset style="margin-top: 5px;">
<legend>დავალების ფორმირება</legend>
<table class="dialog-form-table">
<tr>
<td style="width: 180px;"><label for="d_number">დავალების ტიპი</label></td>
<td ><label for="d_number">განყოფილება</label></td>
</tr>
<tr>
<td ><select id="task_type_id" class="idls object">' . Gettask_type($res['task_type_id']) . '</select></td>
<td ><select style="width: 465px;" id="task_department_id" class="idls object">' . Getdepartment($res['task_department_id']) . '</select></td>
</tr>
</table>
<table class="dialog-form-table">
//.........这里部分代码省略.........
示例4: GetPage
//.........这里部分代码省略.........
<td style="width: 250px;"><input style="margin-left: 35px;" type="radio" value="1"></td>
</tr>
</table>
</fieldset>
<fieldset style="width:160px; float:left;">
<legend>რეაგირება</legend>
<table id="additional" class="dialog-form-table" width="150px">
<tr>
<td style="width: 150px;"><select id="object_id" class="idls object">' . Getobject($res['object_id']) . '</select></td>
</tr>
</table>
</fieldset>
<fieldset style="width:557px; float:left; margin-left: 10px;">
<legend>რეაგირება</legend>
<table id="additional" class="dialog-form-table" width="150px">
<tr>
<td><textarea style="width: 550px; resize: none;" id="comment" class="idle" name="content" cols="300" >' . $res['comment'] . '</textarea></td>
</tr>
</table>
</fieldset>
';
$data .= '
<fieldset style="margin-top: 5px;">
<legend>დავალების ფორმირება</legend>
<table class="dialog-form-table">
<tr>
<td style="width: 180px;"><label for="d_number">დავალების ტიპი</label></td>
<td style="width: 180px;"><label for="d_number">სცენარი</label></td>
<td style="width: 180px;"><label for="d_number">პრიორიტეტი</label></td>
</tr>
<tr>
<td style="width: 180px;" id="task_type_change"><select id="task_type_id" class="idls object">' . Gettask_type($res['task_type_id']) . '</select></td>
<td style="width: 180px;"><select id="task_department_id" class="idls object">' . Getdepartment($res['task_department_id']) . '</select></td>
<td style="width: 180px;"><select id="persons_id" class="idls object">' . Getpersons($res['persons_id']) . '</select></td>
</tr>
<tr>
<td style="width: 150px;"><label for="content">კომენტარი</label></td>
<td style="width: 150px;"><label for="content"></label></td>
<td style="width: 150px;"><label for="content"></label></td>
</tr>
<tr>
<td colspan="6">
<textarea style="width: 747px; resize: none;" id="comment" class="idle" name="content" cols="300" rows="2">' . $res['comment'] . '</textarea>
</td>
</tr>
</table>
</fieldset>
</div>
<div>
</fieldset>
</div>
<div style="float: right; width: 355px;">
<fieldset>
<legend>მომართვის ავტორი</legend>
<table style="height: 243px;">
<tr>
<td style="width: 180px; color: #3C7FB1;">ტელეფონი</td>
<td style="width: 180px; color: #3C7FB1;">პირადი ნომერი</td>
</tr>
<tr>
<td>568919432</td>
<td style="width: 180px;">
<input type="text" id="personal_id" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['personal_id'] . '" />
</td>
示例5: GetPage
function GetPage($res = '', $shabloni)
{
$data .= '<div id="dialog-form">
<div style="float: left; width: 577px;">
<fieldset >
<legend>ძირითადი ინფორმაცია</legend>
<table width="100%" class="dialog-form-table">
<tr>
<td style="width: 180px;"><label for="">დავალების №</label></td>
<td style="width: 180px;"><label for="">თარიღი</label></td>
<td style="width: 180px;"><label for="">ხანგძლივობა</label></td>
</tr>
<tr>
<td>
<input type="text" id="id" class="idle" onblur="this.className=\'idle\'" disabled value="' . $res['id'] . '" disabled="disabled" />
</td>
<td>
<input type="text" id="c_date" class="idle" onblur="this.className=\'idle\'" disabled value="' . $res['date'] . '" disabled="disabled" />
</td>
<td>
<input type="text" id="duration" class="idle" onblur="this.className=\'idle\'" disabled value="' . $res['duration'] . '" disabled="disabled" />
</td>
</tr>
</table><br>
<fieldset style="width:250px; float:left;">
<legend>დავალების ტიპი</legend>
<table class="dialog-form-table">
<tr>
<td><select style="width: 250px;" id="task_type_id_seller" disabled class="idls object">' . Gettask_type($res['task_type_id']) . '</select></td>
</tr>
</table>
</fieldset>
<fieldset style="width:250px; float:left; margin-left:10px;">
<legend>სცენარის დასახელება</legend>
<table class="dialog-form-table">
<tr>
<td><select style="width: 250px;" id="shabloni" disabled class="idls object">' . Getshablon('', $res['template_id']) . '</select></td>
</tr>
</table>
</fieldset>
<fieldset style="width:533px; float:left;">
<legend>ინფორმაცია</legend>
<table id="" class="dialog-form-table" width="500px">
<tr>
<td style="width: 600px;">
<label style="float:left; margin-top:7px; margin-right:5px;">სრულწლოვანი (18)</label>
<input style="float:left;" type="radio" name="status_1" value="1" ' . ($res['status_1'] == '1' ? "checked" : "") . '><span style="margin-top:8px; display:block; float: left;"">კი</span>
<input style="float:left;" type="radio" name="status_1" value="2" ' . ($res['status_1'] == '2' ? "checked" : "") . '><span style="margin-top:8px; display:block; float: left;"">არა</span>
</td>
<td style="width: 400px;">
<label style="float:left; margin-top:7px; margin-right:5px;">მწეველი</label>
<input style="float:left;" type="radio" name="status_2" value="1" ' . ($res['status_2'] == '1' ? "checked" : "") . '><span style="margin-top:8px; display:block; float: left;"">კი</span>
<input style="float:left;" type="radio" name="status_2" value="2" ' . ($res['status_2'] == '2' ? "checked" : "") . '><span style="margin-top:8px; display:block; float: left;"">არა</span>
</td>
</tr>
<tr>
<td style="width: 400px;">
<label style="float:left; margin-top:7px; margin-right:5px;">ვებ გვერდზე დარეგისტრირებული</label>
<input style="float:left;" type="radio" name="status_3" value="1" ' . ($res['status_3'] == '1' ? "checked" : "") . '><span style="margin-top:8px; display:block; float: left;"">კი</span>
</td>
</tr>
</table>
</fieldset>
<fieldset style="width:315px;; float:left;">
<legend>ზარის დაზუსტება</legend>
<table class="dialog-form-table">
<tr>
<td><textarea style="width: 309px; height:70px; resize: none;" id="call_content" class="idle" name="content" cols="300" >' . $res['call_content'] . '</textarea></td>
</tr>
</table>
</fieldset>
<fieldset style="width:190px;; float:left; margin-left:5px;">
<legend>სტატუსი</legend>
<table class="dialog-form-table" style="margin-top:18px;">
<tr>
<td><select style="width: 190px;" id="status" class="idls object">' . Getstatus($res['status']) . '</select></td>
</tr>
<tr>
<td></td>
</tr>
</table>
</fieldset>
</div>
<div style="float: right; width: 355px;">
<fieldset>
<legend>აბონენტი</legend>
<table style="height: 243px;">
<tr>
<td style="width: 180px; color: #3C7FB1;">ტელეფონი 1</td>
<td style="width: 180px; color: #3C7FB1;">ტელეფონი 2</td>
</tr>
<tr>
//.........这里部分代码省略.........
示例6: GetPage
function GetPage($res = '', $number)
{
$num = 0;
if ($res[phone] == "") {
$num = $number;
} else {
$num = $res[phone];
}
$data .= '<div id="dialog-form">
<div style="float: left; width: 670px;">
<fieldset >
<legend>ძირითადი ინფორმაცია</legend>
<table width="65%" class="dialog-form-table">
<tr>
<td style="width: 180px;"><label for="">დავალების №</label></td>
<td style="width: 180px;"><label for="">თარიღი</label></td>
</tr>
<tr>
<td>
<input type="text" id="id" class="idle" onblur="this.className=\'idle\'" value="' . $res['id'] . '" disabled="disabled" />
</td>
<td>
<input type="text" id="c_date" class="idle" onblur="this.className=\'idle\'" value="' . $res['call_date'] . '" disabled="disabled" />
</td>
</tr>
</table>
<fieldset style="width:250px; float:left;">
<legend>დავალების ტიპი</legend>
<table class="dialog-form-table">
<tr>
<td><select style="width: 270px;" id="" class="idls object">' . Gettask_type($res['task_type_id']) . '</select></td>
</tr>
</table>
</fieldset>
<fieldset style="width:340px; float:left; margin-left:10px;">
<legend>სცენარის დასახელება</legend>
<table class="dialog-form-table">
<tr>
<td><select style="width: 345px;" id="" class="idls object">' . Gettask_type($res['task_type_id']) . '</select></td>
</tr>
</table>
</fieldset>
';
$data .= '
<div id="seller">
<ul>
<li style="margin-left:0;" id="0" onclick="seller(this.id)" class="seller_select">მისალმება</li>
<li id="1" onclick="seller(this.id)" class="">შეთავაზება</li>
<li id="2" onclick="seller(this.id)" class="">შედეგი</li>
</ul>
<div id="seller-0">
<fieldset style="width:95%; float:left; ">
<fieldset style="width:95%;">
<legend>მისალმება</legend>
<table class="dialog-form-table">
<tr>
<td><textarea style="width: 620px; height:80px; resize: none;" id="content" class="idle" name="content" cols="300" >' . $res['content'] . '</textarea></td>
</tr>
<tr>
<td style="text-align:right;"><span>შეიყვანეთ ტექსტი</span></td>
</tr>
</table>
</fieldset>
<table class="dialog-form-table" style="width:500px;">
<tr>
<td style="text-align:right;"><span>აქვს</span></td>
<td><input type="radio" name="xx" value="1" ' . ($res['call_vote'] == '1' ? "checked" : "") . '></td>
<td><span>(ვაგრძელებთ)</span></td>
</tr>
<tr>
<td style="text-align:right;"><span>სურს სხვა დროს</span></td>
<td><input type="radio" name="xx" value="2" ' . ($res['call_vote'] == '2' ? "checked" : "") . '></td>
<td><span>(ვიფორმირებთ დავალებას)</span></td>
</tr>
<tr>
<td style="text-align:right;"><span>არ სურს</span></td>
<td><input type="radio" name="xx" value="3" ' . ($res['call_vote'] == '3' ? "checked" : "") . '></td>
<td><span>(ვასრულებთ)</span></td>
</tr>
</table>
<fieldset style="width:95%; float:left; ">
<legend>კომენტარი</legend>
<table class="dialog-form-table">
<tr>
<td><textarea style="width: 620px; height:80px; resize: none;" id="content" class="idle" name="content" cols="300" >' . $res['content'] . '</textarea></td>
</tr>
</table>
</fieldset>
<button style="float:right; margin-top:10px;" onclick="seller(1)" class="next"> >> </button>
<button style="float:right; margin-top:10px;" class="done">დასრულება</button>
</fieldset>
</div>
<div id="seller-1" class="dialog_hidden">
<fieldset style="width:95%; float:left; ">
<fieldset style="width:95%;">
//.........这里部分代码省略.........
示例7: GetPage
function GetPage($res = '', $shabloni)
{
$data .= '<div id="dialog-form">
<div style="float: left; width: 710px;">
<fieldset >
<legend>ძირითადი ინფორმაცია</legend>
<table width="65%" class="dialog-form-table">
<tr>
<td style="width: 180px;"><label for="">დავალების №</label></td>
<td style="width: 180px;"><label for="">თარიღი</label></td>
</tr>
<tr>
<td>
<input type="text" id="id" class="idle" onblur="this.className=\'idle\'" disabled value="' . $res['id'] . '" disabled="disabled" />
</td>
<td>
<input type="text" id="c_date" class="idle" onblur="this.className=\'idle\'" disabled value="' . $res['date'] . '" disabled="disabled" />
</td>
</tr>
</table><br>
<fieldset style="width:250px; float:left;">
<legend>დავალების ტიპი</legend>
<table class="dialog-form-table">
<tr>
<td><select style="width: 305px;" id="task_type_id_seller" disabled class="idls object">' . Gettask_type($res['task_type_id']) . '</select></td>
</tr>
</table>
</fieldset>
<fieldset style="width:340px; float:left; margin-left:10px;">
<legend>სცენარის დასახელება</legend>
<table class="dialog-form-table">
<tr>
<td><select style="width: 375px;" id="shabloni" disabled class="idls object">' . Getshablon('', $res['template_id']) . '</select></td>
</tr>
</table>
</fieldset>
';
$i = 1;
$query = mysql_query("SELECT \t`quest_1`.id,\r\n \t\t\t\t `quest_1`.`name`,\r\n \t\t\t\t `quest_1`.note,\r\n `scenario`.`name`,\r\n\t\t `scenario_detail`.id AS sc_det_id,\r\n\t\t `scenario_detail`.`sort`\r\n FROM `scenario`\r\n JOIN scenario_detail ON scenario.id = scenario_detail.scenario_id\r\n JOIN quest_1 ON scenario_detail.quest_id = quest_1.id\r\n WHERE scenario.id = {$res['template_id']} AND scenario_detail.actived = 1\r\n ORDER BY scenario_detail.sort ASC");
//$row_scen = mysql_fetch_array($query);
$data .= '<div id="dialog-form" style="width:100%; overflow-y:scroll; max-height:400px;">
<fieldset>
<legend>კითხვები</legend>';
while ($row = mysql_fetch_array($query)) {
$last_q = mysql_fetch_array(mysql_query("SELECT `quest_{$row['0']}`,\r\n \t\t `answer_{$row['0']}`\r\n FROM `scenar_{$res['template_id']}`\r\n WHERE `task_detail_id` = {$res['id']}"));
$lq = $last_q[0];
$la = $last_q[1];
$lq = preg_split("/[\\s,]+/", $lq);
$la = preg_split("/[\\s^]+/", $la);
//print_r($lq);
//print_r($la);
//echo $la;
$query1 = mysql_query(" SELECT CASE \tWHEN quest_detail.quest_type_id = 1 THEN CONCAT('<tr><td style=\"width:707px; text-align:left;\"><input',IF(scenar_{$res['template_id']}.quest_{$row['0']} = quest_detail.id,' checked',''), ' class=\"check_input\" ansver_val=\"',quest_detail.answer,'\" style=\"float:left;\" type=\"checkbox\" name=\"checkbox', quest_1.id, '\" value=\"', quest_detail.id, '\"><label style=\"float:left; padding: 7px;\">', quest_detail.answer, '</label></td></tr>')\r\n \t\t\t\t\t\t\tWHEN quest_detail.quest_type_id = 2 THEN CONCAT('<tr><td style=\"width:707px; text-align:left;\"><input value=\"',IF(ISNULL(scenar_1.answer_4), '', scenar_{$res['template_id']}.answer_{$row['0']}),'\" class=\"inputtext\"style=\"float:left;\" type=\"text\" id=\"input|', quest_1.id, '|', quest_detail.id, '\" q_id=\"',quest_detail.id,'\" /> <label style=\"float:left; padding: 7px;\" for=\"input|', quest_1.id, '|', quest_detail.id, '\">',quest_detail.answer,'</label></td></tr>')\r\n\t\t\t\t\t\t\t WHEN quest_detail.quest_type_id = 3 THEN CONCAT('<tr><td>',production.`name`,'</td><td>',production.`price`,'</td><td>',production.`description`,'</td><td>',production.`comment`,'</td><td><input',IF(scenar_{$res['template_id']}.quest_{$row['0']} = production.id,' checked',''), ' ansver_val=\"',production.`name`,'\" class=\"prod_inp\" type=\"checkbox\" name=\"checkbox|', quest_1.id, '|',quest_detail.id, '\" value=\"', production.`id`, '\"> <input style=\"width:30px;height: 15px;\" min=0 class=\"prod_count\" type=\"number\" ></td></tr>')\r\n\t\t WHEN quest_detail.quest_type_id = 4 THEN CONCAT('<tr><td style=\"width:707px; text-align:left;\"><input',IF(scenar_{$res['template_id']}.quest_{$row['0']} = quest_detail.id,' checked',''), ' class=\"radio_input\" ansver_val=\"',quest_detail.answer,'\" style=\"float:left;\" type=\"radio\" name=\"radio', quest_1.id, '\" value=\"', quest_detail.id, '\"><label style=\"float:left; padding: 7px;\">', quest_detail.answer, '</label></td></tr>')\r\n\t\t WHEN quest_detail.quest_type_id = 5 THEN CONCAT('<tr><td style=\"width:707px; text-align:left;\"><input value=\"',IF(scenar_{$res['template_id']}.quest_{$row['0']} != '',scenar_{$res['template_id']}.quest_{$row['0']},''),'\" class=\"date_input\" style=\"float:left;\" type=\"text\" id=\"input|', quest_1.id, '|', quest_detail.id, '\" q_id=\"',quest_detail.id,'\" /> <label style=\"float:left; padding: 7px;\" for=\"input|', quest_1.id, '|', quest_detail.id, '\">',quest_detail.answer,'</label></td></tr>')\r\n\t\t WHEN quest_detail.quest_type_id = 6 THEN CONCAT('<tr><td style=\"width:707px; text-align:left;\"><input value=\"',IF(scenar_{$res['template_id']}.quest_{$row['0']} != '',scenar_{$res['template_id']}.quest_{$row['0']},''),'\" class=\"date_time_input\" style=\"float:left;\" type=\"text\" id=\"input|', quest_1.id, '|', quest_detail.id, '\" q_id=\"',quest_detail.id,'\" /> <label style=\"float:left; padding: 7px;\" for=\"input|', quest_1.id, '|', quest_detail.id, '\">',quest_detail.answer,'</label></td></tr>')\r\n \t\t\t\tEND AS `ans`,\r\n \t\t\t\tquest_detail.quest_type_id,scenar_{$res['template_id']}.answer_{$row['0']}\r\n FROM `quest_detail`\r\n JOIN quest_1 ON quest_detail.quest_id = quest_1.id\r\n LEFT JOIN production ON quest_detail.product_id = production.id\r\n LEFT JOIN scenar_{$res['template_id']} ON scenar_{$res['template_id']}.task_detail_id = '{$res['id']}'\r\n WHERE quest_detail.quest_id = {$row['0']} AND quest_detail.actived = 1\r\n ORDER BY quest_1.id, quest_detail.quest_type_id ASC");
$data .= '<div class="quest_body ' . $row[5] . '" id="' . $row[0] . '"><textarea style="width: 704px; height:100px; resize: none; background: #EBF9FF;" class="idle">' . $row[2] . '</textarea>
<table class="dialog-form-table">
<tr>
<td style="font-weight:bold;">' . $row[5] . '. ' . $row[1] . '</td>
</tr>
';
$g = 0;
while ($row1 = mysql_fetch_array($query1)) {
$q_type = $row1[1];
if ($row1[1] == 3) {
$tr .= $row1[0];
$data1 = ' <style>
#prod{
border:2px solid #85B1DE; width:100%;
}
#prod #prodtr{
background:#F2F2F2;
}
#prod th{
width:0%; padding:5px; border:1px solid #85B1DE;
}
#prod td{
border:1px solid #85B1DE; padding:2px;
}
#prod tr{
background: #FEFEFE
}
</style>
<table id="prod">
<tr id="prodtr">
<th>დასახელება</th>
<th>ფასი</th>
<th>აღწერა</th>
<th>კომენტარი</th>
<th>#</th>
</tr>
' . $tr . '
</table>';
} else {
if ($q_type == 2) {
$input = preg_split("/[\\s^]+/", $row1[2]);
//echo $input[$g++];
//.........这里部分代码省略.........
示例8: GetPage
//.........这里部分代码省略.........
</table>
</div>
</fieldset>
<fieldset style="width: 400px; float:left;">
<legend>ზარის დაზუსტება</legend>
<table id="" class="dialog-form-table" width="150px">
<tr>
<td><textarea style="width: 400px; resize: none;" id="call_comment" class="idle" name="call_comment" cols="300" >' . $res['call_comment'] . '</textarea></td>
</tr>
</table>
</fieldset>
<fieldset style="width: 317px; margin-left:10px; height:55px; float:left;">
<legend>ზარის სტატუსი</legend>
<table id="" class="dialog-form-table" width="150px">
<tr>
<td><select style="width: 310px; margin-left:5px;" id="call_status_id" class="idls object">' . Getcall_status($res['call_status_id']) . '</select></td>
</tr>
</table>
</fieldset>
';
$data .= '
<fieldset style="margin-top: 5px;">
<legend>დავალების ფორმირება</legend>
<table class="dialog-form-table" style="width: 750px;">
<tr>
<td style="width: 180px;"><label for="task_type_id">დავალების ტიპი</label></td>
<td style="width: 180px;"><label for="task_department_id">განყოფილება</label></td>
<td style="width: 180px;"><label for="persons_id">პასუხისმგებელი პირი</label></td>
<td style="width: 180px;"><label for="priority_id">პრიორიტეტი</label></td>
</tr>
<tr>
<td><select style="width: 180px;" id="task_type_id" class="idls object">' . Gettask_type($res['task_type_id']) . '</select></td>
<td><select style="width: 180px;" id="task_department_id" class="idls object">' . Getdepartment($res['task_department_id']) . '</select></td>
<td><select style="width: 180px;" id="persons_id" class="idls object">' . Getpersons($res['persons_id']) . '</select></td>
<td><select style="width: 180px;" id="priority_id" class="idls object">' . Getpriority($res['priority_id']) . '</select></td>
</tr>
</table>
<table class="dialog-form-table" style="width: 750px;">
<tr>
<td style="width: 150px;"><label>შესრულების პერიოდი</label></td>
<td style="width: 150px;"><label></label></td>
<td style="width: 150px;"><label>კომენტარი</label></td>
</tr>
<tr>
<td><input id="done_start_time" style="width: 150px; float:left;" class="idle" type="text" value="' . $res['done_start_time'] . '"><span style="margin-left:5px; ">დან</span></td>
<td><input id="done_end_time" style="width: 150px; float:left;" class="idle" type="text" value="' . $res['done_end_time'] . '"><span style="margin-left:5px; ">მდე</span></td>
<td>
<textarea style="width: 300px; resize: none;" id="comment" class="idle" name="content" cols="300" >' . $res['comment'] . '</textarea>
</td>
</tr>
</table>
</fieldset>
</div>
<div>
</fieldset>
</div>
<div style="float: right; width: 355px;">
<fieldset>
<legend>მომართვის ავტორი</legend>
<table style="height: 243px;">
<tr>
<td style="width: 180px; color: #3C7FB1;">ტელეფონი</td>
示例9: GetPage
function GetPage($res = '', $shabloni)
{
$data .= '<div id="dialog-form">
<div style="float: left; width: 710px;">
<fieldset >
<legend>ძირითადი ინფორმაცია</legend>
<table width="65%" class="dialog-form-table">
<tr>
<td style="width: 180px;"><label for="">დავალების №</label></td>
<td style="width: 180px;"><label for="">თარიღი</label></td>
</tr>
<tr>
<td>
<input type="text" id="id" class="idle" onblur="this.className=\'idle\'" disabled value="' . $res['id'] . '" disabled="disabled" />
</td>
<td>
<input type="text" id="c_date" class="idle" onblur="this.className=\'idle\'" disabled value="' . $res['date'] . '" disabled="disabled" />
</td>
</tr>
</table><br>
<fieldset style="width:250px; float:left;">
<legend>დავალების ტიპი</legend>
<table class="dialog-form-table">
<tr>
<td><select style="width: 305px;" id="task_type_id_seller" disabled class="idls object">' . Gettask_type($res['task_type_id']) . '</select></td>
</tr>
</table>
</fieldset>
<fieldset style="width:340px; float:left; margin-left:10px;">
<legend>სცენარის დასახელება</legend>
<table class="dialog-form-table">
<tr>
<td><select style="width: 375px;" id="shabloni" disabled class="idls object">' . Getshablon('', $res['template_id']) . '</select></td>
</tr>
</table>
</fieldset>
';
if ($res[template_id] == 1) {
$data .= '<div id="dialog-form" style="width:100%; overflow-y:scroll; max-height:400px;">
<fieldset>
<legend>კითხვები</legend>
<div class="1" id="2">
<textarea style="width: 704px; height:100px; resize: none; background: #EBF9FF;" class="idle">სავალდებულოა მონიშნეთ 1 პასუხი</textarea>
<table class="dialog-form-table">
<tbody>
<tr>
<td style="font-weight:bold;">1. სქესი</td>
</tr>
<tr>
<td style="width:707px; text-align:left;">
<input style="float:left;" type="radio" name="sqesi" value="1" ' . ($res['sqesi'] == '1' ? 'checked' : "") . '>
<label style="float:left; padding: 7px;">მამრობითი</label>
</td>
</tr>
<tr>
<td style="width:707px; text-align:left;">
<input style="float:left;" type="radio" name="sqesi" value="2" ' . ($res['sqesi'] == '2' ? 'checked' : "") . '>
<label style="float:left; padding: 7px;">მდედორბითი</label>
</td>
</tr>
</tbody>
</table>
<hr><br>
</div>
<div class="2" id="1">
<textarea style="width: 704px; height:100px; resize: none; background: #EBF9FF;" class="idle">სავალდებულო შეკითხვა</textarea>
<table class="dialog-form-table">
<tbody><tr>
<td style="font-weight:bold;">2. ასაკი</td>
</tr>
<tr>
<td style="width:707px; text-align:left;">
<input style="float:left;" type="radio" name="asaki" value="1" ' . ($res['asaki'] == '1' ? 'checked' : "") . '>
<label style="float:left; padding: 7px;">18 წლამდე</label>
</td>
</tr>
<tr>
<td style="width:707px; text-align:left;">
<input style="float:left;" type="radio" name="asaki" value="2" ' . ($res['asaki'] == '2' ? 'checked' : "") . '>
<label style="float:left; padding: 7px;">18-24</label>
</td>
</tr>
<tr>
<td style="width:707px; text-align:left;">
<input style="float:left;" type="radio" name="asaki" value="3" ' . ($res['asaki'] == '3' ? 'checked' : "") . '>
<label style="float:left; padding: 7px;">25-34</label>
</td>
</tr>
<tr>
<td style="width:707px; text-align:left;">
<input style="float:left;" type="radio" name="asaki" value="4" ' . ($res['asaki'] == '4' ? 'checked' : "") . '>
<label style="float:left; padding: 7px;">35-44</label>
</td>
</tr>
<tr>
<td style="width:707px; text-align:left;">
//.........这里部分代码省略.........
示例10: GetPage
//.........这里部分代码省略.........
<tr>
<td style="width: 180px;">
<input style="width: 180px;" type="text" id="call_date" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField date\'" value="' . $date . '" disabled="disabled" />
</td>
</tr>
<tr>
<td style="width: 180px;"><label for="req_phone">ტელეფონი</label></td>
</tr>
<tr>
<td style="width: 150px;">
<input style="width: 180px;" type="text" id="phone" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['phone'] . '" ' . $disable . ' />
</td>
</tr>
<tr>
<td style="width: 180px;"><label for="req_phone">სახელი</label></td>
</tr>
<tr>
<td style="width: 180px;">
<input style="width: 180px;" type="text" id="client_name" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['name'] . '" ' . $disable . ' />
</td>
</tr>
<tr>
<td style="width: 180px;"><label for="d_number">ზარის სტატუსი</label></td>
</tr>
<tr>
<td style="width: 180px;"><select style="width: 180px;" id="call_status" class="idls object" ' . $disable . '>' . Getcall_status($res['call_status_id']) . '</select></td>
</tr>
<tr style="margin-top: 20px; margin-top=25px">
<td style="width: 180px;"><label for="content">დამატებითი ინფორმაცია</label></td>
</tr>
<tr>
<td colspan="5">
<div id="content">
<textarea style="width: 180px; resize: vertical; margin-top: 5px;" id="call_content" class="idle" name="call_content" cols="300" rows="2" ' . $disable . '>' . $res['call_content'] . '</textarea>
</div>
</td>
</tr>
</table>
</fieldset>
<fieldset style="margin-top: 5px; width: 190px;">
<legend>დავალების ფორმირება</legend>
<table class="dialog-form-table">
<tr style="display: none">
<td style="width: 180px; display: none"><label for="d_number">პასუხისმგებელი პირი</label></td>
</tr>
<tr style="display: none">
<td style="width: 180px; display: none"><select style="width: 180px;" id="persons_id" class="idls object" ' . $disable . '>' . Getpersons($res['responsible_user_id']) . '</select></td>
</tr>
<tr>
<td style="width: 180px;"><label for="d_number">დეპარტამენტი</label></td>
</tr>
<tr>
<td style="width: 180px;"><select style="width: 180px;" id="department_id" class="idls object" ' . $disable . '>' . Getdepartment($res['department_id']) . '</select></td>
</tr>
<tr>
<td style="width: 180px;"><label for="d_number">დავალების ტიპი</label></td>
</tr>
<tr>
<td style="width: 180px;"><select style="width: 180px;" id="task_type_id" class="idls object" ' . $disable . '>' . Gettask_type($res['task_type_id']) . '</select></td>
</tr>
<tr>
<td style="width: 180px;"><label for="d_number">პრიორიტეტი</label></td>
</tr>
<tr>
<td style="width: 180px;"><select style="width: 180px;" id="priority_id" class="idls object" ' . $disable . '>' . Getpriority($res['priority_id']) . '</select></td>
</tr>
<tr style="display: none">
<td style="width: 180px;"><label for="d_number">სხვა ნომერი</label></td>
</tr>
<tr>
<td style="width: 180px;"><label for="content">შინაარსი</label></td>
</tr>
<tr>
<td>
<textarea style="width: 180px; resize: vertical;" id="problem_coment" class="idle" name="call_content" cols="300" rows="2" ' . $disable . '>' . $res['problem_comment'] . '</textarea>
</td>
</tr>
</table>
</fieldset>
</td>
<td>
<fieldset id="search" style="float: right; margin-top: 7px; margin-top: 62px;">
</fieldset>
</td>
<td style="vertical-align: top;">';
$data .= '</div><div id="chanawerebi" style="float: right; width: 195px;">';
$data .= GetRecordingsSection($res);
$data .= '</div>
</td>
</tr>
</table>
<input id="hidden_user" type="text" value="' . $res['user_id'] . '" style="display: none;">
<input id="asterisk_incomming_id" type="text" value="' . $res['asterisk_incomming_id'] . '" style="display: none;">
<input id="inc_id" type="text" value="' . $res['id'] . '" style="display: none;">
</div>';
return $data;
}
示例11: GetPage
function GetPage($res = '', $number)
{
$num = 0;
if ($res[phone] == "") {
$num = $number;
} else {
$num = $res[phone];
}
$increm = mysql_query("\tSELECT `name`,\r\n\t\t\t`rand_name`,\r\n\t\t\tid\r\n\t\t\tFROM \t`file`\r\n\t\t\tWHERE `action_id` = {$res['id']}\r\n\t\t\t");
$data .= '
<!-- jQuery Dialog -->
<div id="add-edit-goods-form" title="აქცია">
<!-- aJax -->
</div>
<div id="dialog-form">
<div style="float: left; width: 580px;">
<fieldset >
<legend>ინფო</legend>
<fieldset float:left;">
<table width="100%" class="dialog-form-table">
<tr>
<td>დასახელება</td>
<td style="width:20px;></td>
<td colspan "5">
<input type="text" id="action_name" class="idle" onblur="this.className=\'idle\'" value="' . $res['action_name'] . '" />
</td>
</tr>
<tr>
<td style="width: 150px;"><label for="d_number">პერიოდი</label></td>
<td>
<input type="text" id="start_date" class="idle" onblur="this.className=\'idle\'" value="' . $res['start_date'] . '" />
</td>
<td style="width: 150px;"><label for="d_number">-დან</label></td>
<td>
<input type="text" id="end_date" class="idle" onblur="this.className=\'idle\'" value="' . $res['end_date'] . '" />
</td>
<td style="width: 150px;"><label for="d_number">-მდე</label></td>
</tr>
</table>
</fieldset>
<fieldset style="float: left; width: 400px;">
<legend>აღწერა</legend>
<table width="100%" class="dialog-form-table">
<tr>
<td colspan="5">
<textarea style="width: 530px; height: 100px; resize: none;" id="action_content" class="idle" name="content" cols="100" rows="2">' . $res['action_content'] . '</textarea>
</td>
</tr>
</table>
</fieldset>
<!--fieldset>
<legend>დავალების ფორმირება</legend>
<table class="dialog-form-table">
<tr>
<td style="width: 180px;"><label for="d_number">დავალების ტიპი</label></td>
<td style="width: 180px;"><label for="d_number">სცენარი</label></td>
<td style="width: 180px;"><label for="d_number">პრიორიტეტი</label></td>
</tr>
<tr>
<td style="width: 180px;" id="task_type_change"><select id="task_type_id" class="idls object">' . Gettask_type($res['task_type_id']) . '</select></td>
<td style="width: 180px;"><select id="task_department_id" class="idls object">' . Getdepartment($res['department_id']) . '</select></td>
<td style="width: 180px;"><select id="persons_id" class="idls object">' . Getpriority($res['priority_id']) . '</select></td>
</tr>
<tr>
<td style="width: 150px;"><label for="content">კომენტარი</label></td>
<td style="width: 150px;"><label for="content"></label></td>
<td style="width: 150px;"><label for="content"></label></td>
</tr>
<tr>
<td colspan="6">
<textarea style="width: 530px; height: 80px; resize: none;" id="comment" class="idle" name="content" cols="100" rows="2">' . $res['comment'] . '</textarea>
</td>
</tr>
</table>
</fieldset-->
</div>
<div style="float: right; width: 360px;">
</fieldset>
<fieldset style="float: right; width: 440px;">
<legend>განყოფილებები</legend>
<div id="dt_example" class="inner-table">
<div style="width:440px;" id="container" >
<div id="dynamic">
<div id="button_area">
<button id="add_button_pp">დამატება</button>
</div>
<table class="" id="example4" style="width: 100%;">
<thead>
<tr id="datatable_header">
<th style="display:none">ID</th>
<th style="width:4%;">#</th>
<th style="width:25%; word-break:break-all;">ფილიალი</th>
<th style="width:20%; word-break:break-all;">მისამართი</th>
//.........这里部分代码省略.........
示例12: GetPage
function GetPage($res = '', $number)
{
if ($res[incomming_call_id] != 0) {
$dis = 'disabled="disabled"';
} else {
$dis = '';
}
$diss = 'disabled="disabled"';
$data .= '
<!-- jQuery Dialog -->
<div id="add-edit-goods-form" title="საქონელი">
<!-- aJax -->
</div>
<div id="dialog-form">
<table width="100%" class="dialog-form-table">
<tr>
<td style="vertical-align: top; width: 180px;">
<fieldset style="width: 180px;">
<legend>ძირითადი ინფორმაცია</legend>
<table class="dialog-form-table">
<tr>
<label for="req_num">ავტორი</label>
<label for="req_num">:</label>
<label for="req_num">' . $res['operator'] . '</label>
</tr>
</table>
<table width="100%" class="dialog-form-table">
<tr>
<td style="width: 180px;"><label for="req_num">მომართვა №</label></td>
</tr>
<tr>
<td style="width: 100px;">
<input style="width: 180px;" type="text" id="task_id" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField user_id\'" value="' . $res['id'] . '" disabled="disabled" />
</td>
</tr>
<tr>
<td style="width: 180px !important;"><label for="req_data">თარიღი</label></td>
</tr>
<tr>
<td style="width: 180px;">
<input style="width: 180px;" type="text" id="call_date" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField date\'" value="' . $res['date'] . '" disabled="disabled" />
</td>
</tr>
<tr>
<td style="width: 180px;"><label for="req_phone">ტელეფონი</label></td>
</tr>
<tr>
<td style="width: 150px;">
<input style="width: 180px;" type="text" id="phone" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['phone'] . '" ' . $diss . ' />
</td>
</tr>
<tr>
<td style="width: 180px;"><label for="req_phone">სახელი</label></td>
</tr>
<tr>
<td style="width: 180px;">
<input style="width: 180px;" type="text" id="client_name" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['name'] . '" ' . $dis . '/>
</td>
</tr>
<tr>
<td colspan="6" style="width: 180px;"><label for="d_number">სტატუსი</label></td>
</tr>
<tr>
<td style="width: 180px;"><select style="width: 180px;" id="task_status" class="idls object"' . $diss . '>' . status($res['status']) . '</select></td>
</tr>
<tr style="margin-top: 20px; margin-top=25px">
<td style="width: 180px;"><label for="content">დამატებითი ინფორმაცია</label></td>
</tr>
<tr>
<td colspan="5">
<div id="content">
<textarea style="width: 180px; resize: vertical; margin-top: 5px;" id="call_content" class="idle" name="call_content" cols="300" rows="2"' . $diss . '>' . $res['call_content'] . '</textarea>
</div>
</td>
</tr>
</table>
</fieldset>
<fieldset style="margin-top: 5px; width: 185px;">
<legend>დავალების ფორმირება</legend>
<table class="dialog-form-table">
<tr>
<td style="width: 180px;"><label for="d_number">პასუხისმგებელი პირი</label></td>
</tr>
<tr>
<td style="width: 180px;"><select style="width: 180px;" id="persons_id" class="idls object">' . Getpersons($res['responsible_user_id']) . '</select></td>
</tr>
<tr>
<td style="width: 180px;"><label for="d_number">დავალების ტიპი</label></td>
</tr>
<tr>
<td style="width: 180px;"><select style="width: 180px;" id="task_type_id" class="idls object">' . Gettask_type($res['task_type_id']) . '</select></td>
</tr>
<tr>
<td style="width: 180px;"><label for="d_number">სხვა ნომერი</label></td>
</tr>
<tr>
<td style="width: 180px;">
<input type="text" style="width: 175px;" id="out_phone" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['task_phone'] . '" />
</td>
//.........这里部分代码省略.........
示例13: GetPage
function GetPage($res = '', $number)
{
$num = 0;
$disabled = '';
$c_date = date('Y-m-d H:i:s');
$user = $_SESSION['USERID'];
if ($res[id] != '') {
$res_row = mysql_fetch_assoc(mysql_query("SELECT persons.department_id,\r\n \t users.group_id\r\n \t FROM users\r\n \t JOIN persons ON persons.id=users.person_id\r\n \t WHERE users.id={$user}"));
if ($res_row[department_id] != 1 && $res_row[department_id] != 5) {
$disabled = 'disabled="disabled"';
}
}
if ($res[date] == "") {
$date = $c_date;
} else {
$date = $res[date];
}
if ($res[date] == 0) {
$diss = '';
$diss1 = 'disabled="disabled"';
} else {
$diss = 'disabled="disabled"';
$diss1 = '';
}
$data .= '
<!-- jQuery Dialog -->
<div id="add-edit-goods-form" title="საქონელი">
<!-- aJax -->
</div>
<div id="dialog-form">
<div style="float: left; width: 800px;">
<fieldset >
<legend>ძირითადი ინფორმაცია</legend>
<tr>
<label for="req_num">დამფორმირებელი</label>
<label for="req_num">:</label>
<label for="req_num">' . $res['operator'] . '</label>
</tr>
<table width="100%" class="dialog-form-table">
<tr>
<td style="width: 100px;"><label for="req_num">მომართვა №</label></td>
<td style="width: 150px !important;"><label style="margin-left: -70px;" for="req_data">თარიღი</label></td>
<td style="width: 150px;"><label style="margin-left: -55px;" for="req_phone">ტელეფონი</label></td>
<td style="width: 180px;"><label style="margin-left: -50px;" for="req_phone">სახელი</label></td>
</tr>
<tr>
<td style="width: 100px;">
<input style="width: 75px;" type="text" id="task_id" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField user_id\'" value="' . $res['id'] . '" disabled="disabled" />
</td>
<td style="width: 150px;">
<input style="width: 130px; margin-left: -70px;" type="text" id="call_date" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField date\'" value="' . $date . '" disabled="disabled" />
</td>
<td style="width: 150px;">
<input style="width: 120px; margin-left: -55px;" type="text" id="phone" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['phone'] . '" ' . $diss . ' />
</td>
<td style="width: 200px;">
<input style="width: 200px; margin-left: -50px;" type="text" id="client_name" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['name'] . '" ' . $diss . '/>
</td>
</tr>
<tr>
<td style="width: 180px;"><label for="d_number">ზარის სტატუსი</label></td>
<td colspan="3" style="width: 240px;"><label for="d_number">დავალების სტატუსი</label></td>
</tr>
<tr>
<td style="width: 180px;"><select style="width: 180px;" id="call_status" class="idls object" disabled="disabled">' . Getcall_status($res['call_status_id']) . '</select></td>
<td colspan="3" style="width: 240px;"><select style="width: 230px;" id="task_status" class="idls object" ' . $diss1 . '>' . status($res['status']) . '</select></td>
</tr>
<tr style="margin-top: 20px; margin-top=25px">
<td style="width: 180px;"><label for="content">დამატებითი ინფორმაცია</label></td>
</tr>
<tr>
<td colspan="6">
<div id="content">
<textarea style="width: 760px; resize: vertical; margin-top: 5px;" id="call_content" class="idle" name="call_content" cols="300" rows="2"' . $diss . '>' . $res['call_content'] . '</textarea>
</div>
</td>
</tr>
</table>
</fieldset >
</div>
<div style="float: left; width: 800px;">
<fieldset style="margin-top: 5px;">
<legend>დავალების ფორმირება</legend>
<table class="dialog-form-table">
<tr>
<td style="width: 240px;"><label for="d_number">დეპარტამენტი</label></td>
<td style="width: 240px;"><label for="d_number">დავალების ტიპი</label></td>
<td style="width: 180px;"><label for="d_number">პრიორიტეტი</label></td>
</tr>
<tr>
<td style="width: 240px;"><select style="width: 230px;" id="department_id" class="idls object" ' . $disabled . '>' . Getdepartment($res['department_id']) . '</select></td>
<td style="width: 240px;"><select style="width: 230px;" id="task_type_id" class="idls object" ' . $disabled . '>' . Gettask_type($res['task_type_id']) . '</select></td>
<td style="width: 180px;"><select style="width: 230px;" id="priority_id" class="idls object" ' . $disabled . '>' . Getpriority($res['priority_id']) . '</select></td>
</tr>
<tr>
<td style="width: 240px;"><label for="content">შინაარსი</label></td>
</tr>
<tr>
<td colspan="6">
//.........这里部分代码省略.........
示例14: GetPage
function GetPage($res = '')
{
$c_date = date('Y-m-d H:i:s');
$data .= '<div id="dialog-form">
<div style="float: left; width: 760px;">
<fieldset >
<legend>ძირითადი ინფორმაცია</legend>
<table width="100%" class="dialog-form-table">
<tr>
<td style="width: 180px;"><label for="req_num">დავალების №</label></td>
<td style="width: 180px;"><label for="req_num">შექმნის თარიღი</label></td>
<td style="width: 180px;"><label for="req_data">შესრულების პერიოდი</label></td>
<td style="width: 180px;"><label for="req_phone"></label></td>
</tr>
<tr>
<td style="width: 150px;">
<input style="width: 150px;" type="text" id="id" class="idle" onblur="this.className=\'idle\'" value="' . ($res['id'] != '' ? $res['id'] : increment('task')) . '" />
</td>
<td style="width: 150px;">
<input style="width: 150px;" type="text" id="cur_date" class="idle" onblur="this.className=\'idle\'" value="' . ($res['date'] != '' ? $res['date'] : $c_date) . '" />
</td>
<td style="width: 200px;">
<input style="float:left;" type="text" id="done_start_time" class="idle" onblur="this.className=\'idle\'" value="' . $res['start_date'] . '" /><span style="float:left; margin-top:5px;">-დან</span>
</td>
<td style="width: 200px;">
<input style="float:left;" type="text" id="done_end_time" class="idle" onblur="this.className=\'idle\'" value="' . $res['end_date'] . '" /><span style="float:left; margin-top:5px;">-მდე</span>
</td>
</tr>
</table>
<table width="100%" class="dialog-form-table">
<tr>
<td style="width: 220px;">დავალების ტიპი</select></td>
<td style="width: 220px;">ქვე-განყოფილება</select></td>
<td style="width: 220px;">პრიორიტეტი</select></td>
</tr>
<tr>
<td style="width: 220px;"><select style="width: 220px;" id="task_type_id" class="idls object">' . Gettask_type($res['task_type_id']) . '</select></td>
<td style="width: 220px;"><select style="width: 220px;" id="task_department_id" class="idls object">' . Getdepartment($res['department_id']) . '</select></td>
<td style="width: 220px;"><select style="width: 217px;" id="priority_id" class="idls object">' . Getpersons($res['priority_id']) . '</select></td>
</tr>
</table>
<table width="100%" class="dialog-form-table" id="task_comment_table">
<tr>
<td style="width: 220px;">დავალების შინაარსი</td>
</tr>
<tr>
<td><textarea style="width: 99%; resize: none; height: 50px;" id="task_comment" class="idle" name="task_comment" cols="300" >' . $res['comment'] . '</textarea></td>
</tr>
</table>
</fieldset>';
//if (Gettask_type($res['task_type_id']) == 1 && Gettask_type($res['task_type_id']) == 2) {
$data .= '<fieldset id="additional" class="hidden">
<legend>კლიენტთა ბაზა</legend>
<table width="100%" class="dialog-form-table">
<tr>
<td>სცენარი</td>
<!--td style="text-align: right;">ფაილის ატვირთვა</td-->
<td style="text-align: right;">სატელეფონო ბაზა</td>
</tr>
<tr>
<td style="width: 200px;"><select style="width: 200px;" id="template_id" class="idls object">' . Getscenar($res['template_id']) . '</select></td>
<!--td style="width: 100px;">
<div class="file-uploader">
<input id="choose_file" type="file" name="choose_file" class="input" style="display: none;">
<button style="margin-right: 0px !important;" id="choose_button" class="center">აირჩიეთ ფაილი</button>
</div>
</td-->
<td style="width: 100px;"><button style="margin-right: 0px !important;" id="choose_base" class="center">აირჩიეთ ბაზა</button> </td>
</tr>
</table>
<div id="dt_example" class="inner-table">
<div style="width:100%;" id="container" >
<div id="dynamic">
<div id="button_area">
<!--button id="add_button_pp">დამატება</button-->
</div>
<table class="" id="example4" style="width: 100%;">
<thead>
<tr id="datatable_header">
<th style="display:none">ID</th>
<th style="width:4%;">#</th>
<th style="width:%; word-break:break-all;">პირადი №<br>საიდ. კოდი</th>
<th style="width:%; word-break:break-all;">დასახელება</th>
<th style="width:%; word-break:break-all;">ფიზ / იურ.<br> პირი</th>
<th style="width:%; word-break:break-all;">ტელეფონი</th>
<th style="width:%; word-break:break-all;">ელ-ფოსტა</th>
<th style="width:%; word-break:break-all;">მისამართი</th>
</tr>
</thead>
<thead>
<tr class="search_header">
<th class="colum_hidden">
<input type="text" name="search_id" value="" class="search_init" style="width: 10px"/>
</th>
<th>
<input style="width:100px;" type="text" name="search_overhead" value="ფილტრი" class="search_init" />
//.........这里部分代码省略.........
示例15: GetPage
function GetPage($res = '')
{
$data .= '<div id="dialog-form">
<div style="float: left; width: 760px;">
<fieldset >
<legend>დავალება</legend>
<table width="100%" class="dialog-form-table">
<tr>
<td style="width: 180px;"><label for="req_num">დავალების №</label></td>
<td style="width: 180px;"><label for="req_num">შექმნის თარიღი</label></td>
<td style="width: 180px;"><label for="req_data">შესრულების პერიოდი</label></td>
<td style="width: 180px;"><label for="req_phone"></label></td>
</tr>
<tr>
<td style="width: 150px;">
<input style="width: 150px;" disabled type="text" id="id_my_task" class="idle" onblur="this.className=\'idle\'" value="' . $res['id'] . '" />
</td>
<td style="width: 150px;">
<input style="width: 150px;" disabled type="text" id="cur_date" class="idle" onblur="this.className=\'idle\'" value="' . $res['date'] . '" />
</td>
<td style="width: 200px;">
<input style="float:left;" disabled type="text" id="done_start_time" class="idle" onblur="this.className=\'idle\'" value="' . $res['start_date'] . '" /><span style="float:left; margin-top:5px;">-დან</span>
</td>
<td style="width: 200px;">
<input style="float:left;" disabled type="text" id="done_end_time" class="idle" onblur="this.className=\'idle\'" value="' . $res['end_date'] . '" /><span style="float:left; margin-top:5px;">-მდე</span>
</td>
</tr>
</table>
<table width="100%" class="dialog-form-table">
<tr>
<td style="width: 220px;">დავალების ტიპი</select></td>
<td style="width: 220px;">ქვე-განყოფილება</select></td>
<td style="width: 220px;">პრიორიტეტი</select></td>
</tr>
<tr>
<td style="width: 220px;"><select style="width: 220px;" disabled id="task_type_id" class="idls object">' . Gettask_type($res['task_type_id']) . '</select></td>
<td style="width: 220px;"><select style="width: 220px;" disabled id="task_department_id" class="idls object">' . Getdepartment($res['department_id']) . '</select></td>
<td style="width: 220px;"><select style="width: 217px;" disabled id="priority_id" class="idls object">' . Getprio($res['priority_id']) . '</select></td>
</tr>
</table>
<table width="100%" class="dialog-form-table" id="task_comment_table">
<tr>
<td style="width: 220px;">დავალების შინაარსი</td>
</tr>
<tr>
<td><textarea disabled style="width: 99%; resize: vertical; height: 70px;" id="task_comment" class="idle" name="task_comment" cols="300" >' . $res['comment'] . '</textarea></td>
</tr>
</table>
</fieldset>
<fieldset>
<legend>შესრულება</legend>
<table width="100%" class="dialog-form-table" id="">
<tr>
<td style="width: 220px;">სტატუსი</td>
<td style="width: 220px;">კომენტარი</td>
</tr>
<tr>
<td style="width: 220px;"><select style="width: 217px;" id="status_id" class="idls object">' . Getstatus($res['status'], $res['user_id']) . '</select></td>
<td><textarea style="width: 98%; resize: vertical; height: 70px;" id="problem_comment" class="idle" name="problem_comment" cols="300" >' . $res['problem_comment'] . '</textarea></td>
</tr>
</table>
</fieldset>
</table>
</fieldset>
</div>';
if ($res['outgoing_id'] != '') {
$data .= '<div style="float: right; width: 355px;">
<fieldset id="open_out">
<legend>აბონენტი</legend>
<table style="height: 243px;">
<tr>
<td style="width: 180px; color: #3C7FB1;">ტელეფონი 1</td>
<td style="width: 180px; color: #3C7FB1;">ტელეფონი 2</td>
</tr>
<tr>
<td>
<input type="text" id="phone" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['phone1'] . '" />
</td>
<td>
<input type="text" id="phone1" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['phone2'] . '" />
</td>
</tr>
<tr>
<td style="width: 180px; color: #3C7FB1;">სახელი</td>
<td style="width: 180px; color: #3C7FB1;">ელ-ფოსტა</td>
</tr>
<tr >
<td style="width: 180px;">
<input type="text" id="first_name" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['first_last_name'] . '" />
</td>
<td style="width: 180px;">
<input type="text" id="mail" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['mail'] . '" />
</td>
//.........这里部分代码省略.........