case "ajaxselectwindows": $window->mid = $_GET['mid']; $window->window_id = $_GET['window_id']; if ($window->window_id == "") { $window->window_id = 0; } echo $window->getSelectWindows($window->window_id, $window->mid, "Y"); break; default: if (file_exists("../simantz/")) { include "menu.php"; $window->modulectrl = $ctrl->getSelectModule($findmodule_id, "Y"); } else { include "../class/SelectCtrl.inc.php"; $ctrl = new SelectCtrl(); $window->modulectrl = $ctrl->getSelectModule($findmodule_id, "Y"); } $xoTheme->addStylesheet("{$url}/modules/simantz/include/window.css"); $xoTheme->addStylesheet("{$url}/modules/simantz/include/popup.css"); $xoTheme->addScript("{$url}/modules/simantz/include/popup.js"); $xoTheme->addScript('browse.php?Frameworks/jquery/jquery.js'); if ($_GET['findmodule_id'] >= 1) { $findmodule_id = $_GET['findmodule_id']; } else { $findmodule_id = 0; } $window->showSearchForm(); $windowlist = $window->showParentWindowsTree($findmodule_id); $formname = $window->getInputForm($findmodule_id); echo <<<EOF <div id='blanket' style='display:none;'></div>
//if user click particular column trigger this function function clickrecord(eventArgs){ jQuery('#cellvalue').fadeTo('veryfast', 0, function() { var grid = eventArgs.getSource(); row=eventArgs.getCell().getRow(); col=eventArgs.getCell().getColumn(); var value = grid.getCellObject(row,col).getValue(); document.getElementById('cellvalue').innerHTML="Value: "+value; }); jQuery('#cellvalue').fadeTo('fast', 1, function() {}); } </script> EOF; $window->modulectrl = $ctrl->getSelectModule(0, "Y", "searchmodule_id", "searchmodule_id"); $window->showSearchForm(); echo <<<EOF <br/> <a href="index.php">Back to this module index</a> <table> <tr><TH colspan='2'>Add/Edit Windows</TH></tr> <tr><td width="90%"> <ntb:grid id="DataboundGrid" mode="livescrolling" rowinsertenabled="true" rowdeleteenabled="true" ondatareadyevent="dataready();" rowhighlightenabled="false" oncellclickevent="clickrecord(eventArgs)"