本文整理汇总了PHP中sapp_Global::grid_data方法的典型用法代码示例。如果您正苦于以下问题:PHP sapp_Global::grid_data方法的具体用法?PHP sapp_Global::grid_data怎么用?PHP sapp_Global::grid_data使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类sapp_Global
的用法示例。
在下文中一共展示了sapp_Global::grid_data方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: generateGrid
//.........这里部分代码省略.........
$output .= "<th " . $width . ">";
// Check if Sorting is set to True
if ($sorting) {
// Disable Sorting if Key is in Extra Columns
if (@$this->extra[$key]['name'] != '' && !is_array($value)) {
if ($value == "Action") {
$output .= "<span class='action-text'></span>";
} else {
$output .= $value;
}
} else {
if (is_array($value)) {
$key = $value['sortkey'];
$value = $value['value'];
}
$welcome = 'false';
$urlString = $_SERVER['REQUEST_URI'];
if ($key != 'id') {
$sText = '';
if (!empty($searchArray)) {
$display = 'display: block;';
} else {
$display = 'display: none;';
}
if (is_array($searchArray)) {
if (array_key_exists($key, $searchArray)) {
$sText = $searchArray[$key];
} else {
$sText = '';
}
}
if (isset($search_filters[$key])) {
$search_function = 'getsearchdata("' . $name . '","' . $conText . '","' . $key . '",event';
$output .= sapp_Global::grid_data($search_filters, $key, $name, $display, $sText, $tabindx, $search_function);
} else {
$output .= "<input tabIndex={$tabindx} type='text' name='{$name}' id='{$key}' style='{$display}' class='searchtxtbox_{$name} table_inputs grid_search_inputs' value='{$sText}' onkeydown='getsearchdata(\"{$name}\",\"{$conText}\",\"{$key}\",event,\"text\")' />";
}
}
}
} else {
//For Sort Icons....
if ($sortStr == $key) {
$output .= $sortIconStr;
}
$output .= $value;
}
$output .= "</th>";
$colinr++;
$tabindx++;
}
//end of for each loop
}
$output .= "</tr>\r\n\r\n </thead>";
$output .= "<tbody>";
// Start Looping Data
$ii = 0;
foreach ($paginator as $p) {
$cell_color = $ii % 2 == 0 ? "row1" : "row2";
$ii++;
$bodyCount = 0;
$output .= "<tr onclick='selectrow({$name},this);' class='{$cell_color}'>";
// Reset Fields Array to Top
if (!empty($fields)) {
reset($fields);
foreach ($fields as $k => $v) {
$tdclass = '';
示例2: generateGrid
//.........这里部分代码省略.........
$output .= "<th " . $width . ">";
// Check if Sorting is set to True
if ($sorting) {
// Disable Sorting if Key is in Extra Columns
if (@$this->extra[$key]['name'] != '' && !is_array($value)) {
if ($value == "Action") {
$output .= "<span class='action-text'></span>";
} else {
$output .= $value;
}
} else {
if (is_array($value)) {
$key = $value['sortkey'];
$value = $value['value'];
}
$welcome = 'false';
$urlString = $_SERVER['REQUEST_URI'];
if ($key != 'id') {
$sText = '';
if (!empty($searchArray)) {
$display = 'display: block;';
} else {
$display = 'display: none;';
}
if (is_array($searchArray)) {
if (array_key_exists($key, $searchArray)) {
$sText = $searchArray[$key];
} else {
$sText = '';
}
}
if (isset($search_filters[$key])) {
$search_function = 'getsearchdata("' . $name . '","",this.id,event';
$output .= sapp_Global::grid_data($search_filters, $key, $name, $display, $sText, $tabindx, $search_function);
} else {
$output .= "<input tabIndex={$tabindx} type='text' name='{$name}' id='{$key}' style='{$display}' class='searchtxtbox_{$name} table_inputs grid_search_inputs' value='{$sText}' onkeydown='getsearchdata(\"{$name}\",\"\",this.id,event,\"text\")' />";
}
}
}
} else {
//For Sort Icons....
if ($key == $sortStr) {
$output .= $sortIconStr;
}
$output .= $value;
}
$output .= "</th>";
$colinr++;
$tabindx++;
}
//end of for each loop
}
$output .= "</tr>\r\n\r\n </thead>";
$output .= "<tbody>";
// Start Looping Data
$ii = 0;
foreach ($paginator as $p) {
$cell_color = $ii % 2 == 0 ? "row1" : "row2";
$ii++;
$bodyCount = 0;
$output .= "<tr onclick='selectrow({$name},this);' class='{$cell_color}'>";
// Reset Fields Array to Top
if (!empty($fields)) {
reset($fields);
foreach ($fields as $k => $v) {
$tdclass = '';
示例3: generateGrid
//.........这里部分代码省略.........
// Disable Sorting if Key is in Extra Columns
if (@$this->extra[$key]['name'] != '' && !is_array($value)) {
if ($value == "Action") {
$output .= "<span class='action-text'></span>";
} else {
$output .= $value;
}
} else {
if (is_array($value)) {
$key = $value['sortkey'];
$value = $value['value'];
}
$welcome = 'false';
$urlString = $_SERVER['REQUEST_URI'];
if ($key != 'id') {
$sText = '';
if (!empty($searchArray)) {
$display = 'display: block;';
} else {
$display = 'display: none;';
}
if ($controllerName == 'myemployees' && $actionName == 'index') {
$display = '';
}
if (is_array($searchArray)) {
if (array_key_exists($key, $searchArray)) {
$sText = $searchArray[$key];
} else {
$sText = '';
}
}
if (isset($search_filters[$key])) {
$search_function = 'getsearchdata("' . $name . '","",this.id,event';
$output .= sapp_Global::grid_data($search_filters, $key, $name, $display, $sText, $tabindx, $search_function);
} else {
$output .= "<input tabIndex={$tabindx} type='text' name='{$name}' id='{$key}' style='{$display}' class='searchtxtbox_{$name} table_inputs grid_search_inputs' value=\"{$sText}\" onKeypress='if (!((event.keyCode || event.which) > 47 && (event.keyCode || event.which) < 58) && !((event.keyCode || event.which) > 64 && (event.keyCode || event.which) < 91) && !((event.keyCode || event.which) > 96 && (event.keyCode || event.which) < 123) && ((event.keyCode || event.which) != 45) && ((event.keyCode || event.which) != 63) && ((event.keyCode || event.which) != 39) && ((event.keyCode || event.which) != 46) && ((event.keyCode || event.which) != 44) && ((event.keyCode || event.which) != 47) && ((event.keyCode || event.which) != 35) && ((event.keyCode || event.which) != 64) && ((event.keyCode || event.which) != 36) && ((event.keyCode || event.which) != 38) && ((event.keyCode || event.which) != 42) && ((event.keyCode || event.which) != 40) && ((event.keyCode || event.which) != 41) && ((event.keyCode || event.which) != 33) && ((event.keyCode || event.which) != 32)) event.preventDefault();' onkeydown='getsearchdata(\"{$name}\",\"\",this.id,event,\"text\")' />";
}
}
}
} else {
//For Sort Icons....
if ($key == $sortStr) {
$output .= $sortIconStr;
}
$output .= $value;
}
$output .= "</th>";
$colinr++;
$tabindx++;
}
//end of for each loop
}
$output .= "</tr>\n\n </thead>";
$output .= "<tbody>";
// Start Looping Data
$ii = 0;
foreach ($paginator as $p) {
$cell_color = $ii % 2 == 0 ? "row1" : "row2";
$ii++;
$bodyCount = 0;
$output .= "<tr onclick='selectrow({$name},this);' class='{$cell_color}'>";
// Reset Fields Array to Top
if (!empty($fields)) {
reset($fields);
foreach ($fields as $k => $v) {
$tdclass = '';
示例4: generateGridTm
//.........这里部分代码省略.........
// Disable Sorting if Key is in Extra Columns
if (@$this->extra[$key]['name'] != '' && !is_array($value)) {
if ($value == "Action") {
$output .= "<span class='action-text'></span>";
} else {
$output .= $value;
}
} else {
if (is_array($value)) {
$key = $value['sortkey'];
$value = $value['value'];
}
$welcome = 'false';
$urlString = $_SERVER['REQUEST_URI'];
if ($key != 'id') {
$sText = '';
if (!empty($searchArray)) {
$display = 'display: block;';
} else {
$display = 'display: none;';
}
if ($controllerName == 'myemployees' && $actionName == 'index') {
$display = '';
}
if (is_array($searchArray)) {
if (array_key_exists($key, $searchArray)) {
$sText = $searchArray[$key];
} else {
$sText = '';
}
}
if (isset($search_filters[$key])) {
$search_function = 'getsearchdata("' . $name . '","",this.id,event';
$output .= sapp_Global::grid_data($search_filters, $key, $name, $display, $sText, $tabindx, $search_function, $projectId, $otherAction, $start_date, $end_date, $emp_id);
} else {
//echo $name;
if ($key != 'viewtasks' && $key != 'viewresources' && $key != 'duration') {
$output .= "<input tabIndex={$tabindx} type='text' name='{$name}' id='{$key}' style='{$display}' class='searchtxtbox_{$name} table_inputs grid_search_inputs' value=\"{$sText}\" onKeypress='if (!((event.keyCode || event.which) > 47 && (event.keyCode || event.which) < 58) && !((event.keyCode || event.which) > 64 && (event.keyCode || event.which) < 91) && !((event.keyCode || event.which) > 96 && (event.keyCode || event.which) < 123) && ((event.keyCode || event.which) != 45) && ((event.keyCode || event.which) != 63) && ((event.keyCode || event.which) != 39) && ((event.keyCode || event.which) != 46) && ((event.keyCode || event.which) != 44) && ((event.keyCode || event.which) != 47) && ((event.keyCode || event.which) != 35) && ((event.keyCode || event.which) != 64) && ((event.keyCode || event.which) != 36) && ((event.keyCode || event.which) != 38) && ((event.keyCode || event.which) != 42) && ((event.keyCode || event.which) != 40) && ((event.keyCode || event.which) != 41) && ((event.keyCode || event.which) != 33) && ((event.keyCode || event.which) != 32) && ((event.keyCode || event.which) != 8)) event.preventDefault();' \n\t\t\t\t\t\t\t\t \t\t\t\t\tonkeydown='getsearchdata(\"{$name}\",\"\",this.id,event,\"text\",\"{$projectId}\",\"{$otherAction}\",\"{$start_date}\",\"{$end_date}\",\"{$emp_id}\")' />";
}
}
}
}
} else {
//For Sort Icons....
if ($key == $sortStr) {
$output .= $sortIconStr;
}
$output .= $value;
}
$output .= "</th>";
$colinr++;
$tabindx++;
}
//end of for each loop
}
$output .= "</tr>\n\n </thead>";
$output .= "<tbody>";
// Start Looping Data
$ii = 0;
foreach ($paginator as $p) {
$cell_color = $ii % 2 == 0 ? "row1" : "row2";
$ii++;
$bodyCount = 0;
$output .= "<tr onclick='selectrow({$name},this);' class='{$cell_color}'>";
// Reset Fields Array to Top
if (!empty($fields)) {
示例5: generateGrid
//.........这里部分代码省略.........
$output .= "<th " . $width . ">";
// Check if Sorting is set to True
if ($sorting) {
// Disable Sorting if Key is in Extra Columns
if (@$this->extra[$key]['name'] != '' && !is_array($value)) {
if ($value == "Action") {
$output .= "<span class='action-text'></span>";
} else {
$output .= $value;
}
} else {
if (is_array($value)) {
$key = $value['sortkey'];
$value = $value['value'];
}
$welcome = 'false';
$urlString = $_SERVER['REQUEST_URI'];
if ($key != 'id') {
$sText = '';
if (!empty($searchArray)) {
$display = 'display: block;';
} else {
$display = 'display: none;';
}
if (is_array($searchArray)) {
if (array_key_exists($key, $searchArray)) {
$sText = urldecode($searchArray[$key]);
} else {
$sText = '';
}
}
if (isset($search_filters[$key])) {
$search_function = 'getsearchdata("' . $name . '","",this.id,event';
$output .= sapp_Global::grid_data($search_filters, $key, $name, $display, $sText, $tabindx, $search_function);
} else {
if ($key != 'key_flag') {
$output .= "<input tabIndex={$tabindx} type='text' name='{$name}' id='{$key}' style='{$display}' class='searchtxtbox_{$name} table_inputs grid_search_inputs' value='{$sText}' onkeydown='getsearchdata(\"{$name}\",\"\",this.id,event,\"text\")' />";
}
}
}
}
} else {
//For Sort Icons....
if ($key == $sortStr) {
$output .= $sortIconStr;
}
$output .= $value;
}
$output .= "</th>";
$colinr++;
$tabindx++;
}
}
//end of for each loop
}
$output .= "</tr>\n\n </thead>";
$output .= "<tbody>";
// Start Looping Data
$ii = 0;
foreach ($paginator as $p) {
$cell_color = $ii % 2 == 0 ? "row1" : "row2";
$ii++;
$bodyCount = 0;
$output .= "<tr onclick='selectrow({$name},this);' class='{$cell_color}'>";
// Reset Fields Array to Top
if (!empty($fields)) {
示例6: generateGrid
//.........这里部分代码省略.........
$output .= "<th " . $width . ">";
// Check if Sorting is set to True
if ($sorting) {
// Disable Sorting if Key is in Extra Columns
if (@$this->extra[$key]['name'] != '' && !is_array($value)) {
if ($value == "Action") {
$output .= "<span class='action-text'></span>";
} else {
$output .= $value;
}
} else {
if (is_array($value)) {
$key = $value['sortkey'];
$value = $value['value'];
}
$welcome = 'false';
$urlString = $_SERVER['REQUEST_URI'];
if ($key != 'id') {
$sText = '';
if (!empty($searchArray)) {
$display = 'display: block;';
} else {
$display = 'display: none;';
}
if (is_array($searchArray)) {
if (array_key_exists($key, $searchArray)) {
$sText = $searchArray[$key];
} else {
$sText = '';
}
}
if (isset($search_filters[$key])) {
$search_function = 'getsearchdata("' . $name . '","",this.id,event';
$output .= sapp_Global::grid_data($search_filters, $key, $name, $display, $sText, $tabindx, $search_function);
} else {
$output .= "<input tabIndex={$tabindx} type='text' name='{$name}' id='{$key}' style='{$display}' class='searchtxtbox_{$name} table_inputs grid_search_inputs' value='{$sText}' onkeydown='getsearchdata(\"{$name}\",\"\",this.id,event,\"text\")' />";
}
}
}
} else {
//For Sort Icons....
if ($key == $sortStr) {
$output .= $sortIconStr;
}
$output .= $value;
}
$output .= "</th>";
$colinr++;
$tabindx++;
}
//end of for each loop
}
if ($grid_type != '') {
$output .= "<input type='hidden' id='service_grid' value='" . sapp_Global::_encrypt($grid_type) . "' />";
}
if ($status_value != '') {
$output .= "<input type='hidden' id='service_grid_status' value='" . sapp_Global::_encrypt($status_value) . "' />";
}
$output .= "</tr></thead>";
$output .= "<tbody>";
// Start Looping Data
$ii = 0;
foreach ($paginator as $p) {
$cell_color = $ii % 2 == 0 ? "row1" : "row2";
$ii++;
$bodyCount = 0;