コード例 #1
0
 default:
     //$issimbiz=false;
     //if(file_exists("../simbiz/class/AccountsAPI.php") ){
     //include_once "../simbiz/class/SimbizSelectCtrl.inc.php";
     //$simbizctrl = new SimbizSelectCtrl();
     //$issimbiz = true;
     //}
     include "menu.php";
     $xoTheme->addStylesheet("{$url}/modules/simantz/include/popup.css");
     $xoTheme->addScript("{$url}/modules/simantz/include/popup.js");
     $xoTheme->addScript('browse.php?Frameworks/jquery/jquery.js');
     $xoTheme->addScript("{$url}/modules/simantz/include/nitobi/nitobi.toolkit.js");
     $xoTheme->addStylesheet("{$url}/modules/simantz/include/nitobi/nitobi.grid/nitobi.grid.css");
     $xoTheme->addScript("{$url}/modules/simantz/include/nitobi/nitobi.grid/nitobi.grid.js");
     $xoTheme->addScript("{$url}/modules/simantz/include/firefox3_6fix.js");
     $o->showSearchForm();
     //produce search form, comment here to hide search form
     if ($isadmin == 1) {
         $grIdColumn = 6;
         //define primary key column index, it will set as readonly afterwards (count from 0)
         $deleteddefaultvalue_js = "myGrid.getCellObject(rowNo,5).setValue(0);";
         //if admin login got deleted column, during admin insert new record shall set it default =0 (not deleted)
         $changewidth = "width='300'";
         //    $showdeleted="<a onclick=document.getElementById(\"searchisdeleted\").click() title=\"Show deleted records.\">Show Deleted Only</a>".
         //              "<input type=\"checkbox\" name=\"searchisdeleted\" id=\"searchisdeleted\" onchange=\"hideadd()\">";
     } else {
         $grIdColumn = 4;
         //define primary key column index for normal user
         $deleteddefaultvalue_js = "";
         $changewidth = "width='375'";
     }
コード例 #2
0
<?php

//	include_once ('../../mainfile.php');
//	include_once (XOOPS_ROOT_PATH.'/header.php');
include "system.php";
include "menu.php";
include "class/nitobi.xml.php";
include "class/BPartnerGroup.inc.php";
$bpartnergroup = new BPartnerGroup();
$xoTheme->addScript('browse.php?Frameworks/jquery/jquery.js');
$bpartnergroup->showSearchForm();
if ($havewriteperm == 1) {
    $permctrl = " rowinsertenabled=\"true\"      rowdeleteenabled=\"true\"      toolbarenabled=\"true\"      ";
} else {
    $permctrl = " rowinsertenabled=\"false\"   autosaveenabled=\"false\"   rowdeleteenabled=\"false\"      toolbarenabled=\"false\"      ";
}
echo <<<EOF
<link rel="stylesheet" href="{$url}/modules/simantz/include/nitobi/nitobi.grid/nitobi.grid.css" type="text/css" />
<script type="text/javascript" src="{$url}/modules/simantz/include/nitobi/nitobi.toolkit.js"></script>
<script type="text/javascript" src="{$url}/modules/simantz/include/nitobi/nitobi.grid/nitobi.grid.js"></script>
  <script language="javascript" type="text/javascript">
    jQuery(document).ready((function (){nitobi.loadComponent('DataboundGrid');}));

     function init(){}

     function search(){

        var grid = nitobi.getGrid("DataboundGrid");
        var searchbpartnergroup_name=document.getElementById("searchbpartnergroup_name").value;

        var searchisactive=document.getElementById("searchisactive").value;