Another minor tweak, so the formatter functions don't fall directly into the first grid area (but just above).
git-svn-id: file:///svn-source/pmgr/branches/pre_0.1_work_20090819@828 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -266,12 +266,8 @@ $jqGrid_setup = array_merge
|
|||||||
// to kick this thing off.
|
// to kick this thing off.
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<DIV ID="<?php echo $grid_div_id; ?>" CLASS="<?php echo $grid_div_class; ?>">
|
|
||||||
<table id="<?php echo $grid_id; ?>" class="scroll"></table>
|
|
||||||
<div id="<?php echo $grid_id; ?>-pager" class="scroll" style="text-align:right"></div>
|
|
||||||
<script type="text/javascript"><!--
|
|
||||||
|
|
||||||
<?php if ($first_grid): ?>
|
<?php if ($first_grid): ?>
|
||||||
|
<script type="text/javascript"><!--
|
||||||
var currencyFormatter = function(cellval, opts, rowObject) {
|
var currencyFormatter = function(cellval, opts, rowObject) {
|
||||||
if (!cellval)
|
if (!cellval)
|
||||||
return "";
|
return "";
|
||||||
@@ -296,8 +292,14 @@ var idFormatter = function(cellval, opts, rowObject) {
|
|||||||
return cellval;
|
return cellval;
|
||||||
return '#'+cellval;
|
return '#'+cellval;
|
||||||
}
|
}
|
||||||
|
--></script>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
|
|
||||||
|
<DIV ID="<?php echo $grid_div_id; ?>" CLASS="<?php echo $grid_div_class; ?>">
|
||||||
|
<table id="<?php echo $grid_id; ?>" class="scroll"></table>
|
||||||
|
<div id="<?php echo $grid_id; ?>-pager" class="scroll" style="text-align:right"></div>
|
||||||
|
<script type="text/javascript"><!--
|
||||||
jQuery(document).ready(function(){
|
jQuery(document).ready(function(){
|
||||||
jQuery('#<?php echo $grid_id; ?>').jqGrid(
|
jQuery('#<?php echo $grid_id; ?>').jqGrid(
|
||||||
<?php echo FormatHelper::phpVarToJavascript($jqGrid_setup); ?>
|
<?php echo FormatHelper::phpVarToJavascript($jqGrid_setup); ?>
|
||||||
@@ -309,9 +311,7 @@ jQuery(document).ready(function(){
|
|||||||
search:true,
|
search:true,
|
||||||
refresh:true});
|
refresh:true});
|
||||||
});
|
});
|
||||||
|
|
||||||
--></script>
|
--></script>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if (count($search_fields) > 0) {
|
if (count($search_fields) > 0) {
|
||||||
echo('<div>Search By:<BR>' . "\n");
|
echo('<div>Search By:<BR>' . "\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user