code
stringlengths
1
2.01M
repo_name
stringlengths
3
62
path
stringlengths
1
267
language
stringclasses
231 values
license
stringclasses
13 values
size
int64
1
2.01M
<?php require_once '../../../jq-config.php'; // include the jqGrid Class require_once ABSPATH."php/jqGrid.php"; // include the driver class require_once ABSPATH."php/jqGridPdo.php"; // Connection to the server $conn = new PDO(DB_DSN,DB_USER,DB_PASSWORD); // Tell the db that we use utf-8 $conn->query("SET NAMES utf8"); // Create the jqGrid instance $grid = new jqGridRender($conn); // Write the SQL Query $grid->SelectCommand = 'SELECT OrderID, Freight, OrderDate, ShipCity FROM orders'; // Set output format to json $grid->dataType = 'json'; // Let the grid create the model $grid->setColModel(); // Set the url from where we obtain the data $grid->setUrl('grid.php'); // Set some grid options $grid->setGridOptions(array( "rowNum"=>10, "rowList"=>array(10,20,30), "sortname"=>"OrderID" )); // Change some property of the field(s) $grid->setColProperty("OrderDate", array( "formatter"=>"date", "formatoptions"=>array("srcformat"=>"Y-m-d H:i:s","newformat"=>"m/d/Y"), "search"=>false ) ); // Enable navigator $grid->navigator = true; // Enable excel export $grid->setNavOptions('navigator', array("excel"=>false,"add"=>false,"edit"=>false,"del"=>false,"view"=>false)); // add a custom button via the build in callGridMethod // note the js: before the function $buttonoptions = array("#pager", array("caption"=>"Custom Button", "onClickButton"=>"js: function(){alert('Custom Button clicked')}") ); $grid->callGridMethod("#grid", "navButtonAdd", $buttonoptions); // Enjoy $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/functionality/custom_button/grid.php
PHP
gpl2
1,587
<?php require_once '../../../tabs.php'; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>jqGrid PHP Demo</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/redmond/jquery-ui-1.8.2.custom.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.jqgrid.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.multiselect.css" /> <style type="text"> html, body { margin: 0; /* Remove body margin/padding */ padding: 0; overflow: hidden; /* Remove scroll bars on browser window */ font-size: 75%; } </style> <script src="../../../js/jquery.js" type="text/javascript"></script> <script src="../../../js/i18n/grid.locale-en.js" type="text/javascript"></script> <script type="text/javascript"> $.jgrid.no_legacy_api = true; $.jgrid.useJSON = true; </script> <script src="../../../js/jquery.jqGrid.min.js" type="text/javascript"></script> <script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script> </head> <body> <div> <?php include ("grid.php");?> </div> <br/> <?php tabs(array("grid.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/functionality/frozen/default.php
PHP
gpl2
1,415
<?php require_once '../../../jq-config.php'; // include the jqGrid Class require_once ABSPATH."php/jqGrid.php"; // include the driver class require_once ABSPATH."php/jqGridPdo.php"; // Connection to the server $conn = new PDO(DB_DSN,DB_USER,DB_PASSWORD); // Tell the db that we use utf-8 $conn->query("SET NAMES utf8"); // Create the jqGrid instance $grid = new jqGridRender($conn); // Write the SQL Query $grid->SelectCommand = 'SELECT CustomerID, ShipName, OrderID, OrderDate, Freight, ShipAddress, ShipCity FROM orders'; // Set output format to json $grid->dataType = 'json'; // Let the grid create the model $grid->setColModel(); $grid->setPrimaryKeyId('OrderID'); // Set the url from where we obtain the data $grid->setUrl('grid.php'); // Set some grid options $grid->setGridOptions(array( "rowNum"=>10, "rowList"=>array(10,20,30), "sortname"=>"OrderID", "shrinkToFit"=>false, "width"=>600, "rownumbers"=>true )); // set frozen property $grid->setColProperty("CustomerID", array( "frozen"=>true, "width"=>100 ) ); $grid->setColProperty("ShipName", array( "width"=>150, "frozen"=>true ) ); // Change some property of the field(s) $grid->setColProperty("OrderDate", array( "formatter"=>"date", "formatoptions"=>array("srcformat"=>"Y-m-d H:i:s","newformat"=>"m/d/Y"), "search"=>false ) ); // Enable navigator $grid->navigator = true; // Enable excel export $grid->setNavOptions('navigator', array("excel"=>false,"add"=>false,"edit"=>false,"del"=>false,"view"=>false)); // // Call the frozen cols method $grid->callGridMethod('#grid', 'setFrozenColumns'); // Enjoy $grid->renderGrid('#grid','#pager',true, $summaryrows, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/functionality/frozen/grid.php
PHP
gpl2
1,703
<?php require_once '../../../tabs.php'; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>jqGrid PHP Demo</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/redmond/jquery-ui-1.8.2.custom.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.jqgrid.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.multiselect.css" /> <style type="text"> html, body { margin: 0; /* Remove body margin/padding */ padding: 0; overflow: hidden; /* Remove scroll bars on browser window */ font-size: 75%; } </style> <script src="../../../js/jquery.js" type="text/javascript"></script> <script src="../../../js/i18n/grid.locale-en.js" type="text/javascript"></script> <script type="text/javascript"> $.jgrid.no_legacy_api = true; $.jgrid.useJSON = true; </script> <script src="../../../js/jquery.jqGrid.min.js" type="text/javascript"></script> <script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script> </head> <body> <div> <?php include ("grid.php");?> </div> <br/> <?php tabs(array("grid.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/functionality/custom_formatter/default.php
PHP
gpl2
1,414
<?php require_once '../../../jq-config.php'; // include the jqGrid Class require_once ABSPATH."php/jqGrid.php"; // include the driver class // Create the jqGrid instance $grid = new jqGridRender(); // Lets create the model manually and set the formatters $Model = array( array("name"=>"ID","width"=>50), array("name"=>"PhotoFileName","width"=>100), array("name"=>"Photo","width"=>100,"formatter"=>"js:formatImage", "unformat"=>"js:unformatImage"), array("name"=>"Rating","sorttype"=>"integer","formatter"=>"js:formatRating","unformat"=>"js:unformatRating") ); // Let the grid create the model $grid->setColModel($Model); // Set grid option datatype to be local $grid->setGridOptions(array("datatype"=>"local", "width"=>400,"height"=>350)); //We can add data manually using arrays $data = array(); for($i=0;$i<9;$i++) { $data[] = array("ID"=>$i+1,"PhotoFileName"=>($i+1).".jpg","Photo"=>($i+1).".jpg", "Rating"=>rand(-20,30)); } // Let put it using the callGridMethod $grid->callGridMethod("#grid", 'addRowData', array("ID",$data)); // We can put JS from php $custom = <<<CUSTOM function formatImage(cellValue, options, rowObject) { var imageHtml = "<img src='images/" + cellValue + "' originalValue='" + cellValue + "' />"; return imageHtml; } function unformatImage(cellValue, options, cellObject) { return $(cellObject.html()).attr("originalValue"); } function formatRating(cellValue, options, rowObject) { var color = (parseInt(cellValue) > 0) ? "green" : "red"; var cellHtml = "<span style='color:" + color + "' originalValue='" + cellValue + "'>" + cellValue + "</span>"; return cellHtml; } function unformatRating(cellValue, options, cellObject) { return $(cellObject.html()).attr("originalValue"); } CUSTOM; // Let set the code which is executed at end $grid->setJSCode($custom); $grid->renderGrid('#grid','#pager',true, null, null, true,true); ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/functionality/custom_formatter/grid.php
PHP
gpl2
1,919
<?php require_once '../../../tabs.php'; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>jqGrid PHP Demo</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/redmond/jquery-ui-1.8.2.custom.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.jqgrid.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.multiselect.css" /> <style type="text"> html, body { margin: 0; /* Remove body margin/padding */ padding: 0; overflow: hidden; /* Remove scroll bars on browser window */ font-size: 75%; } </style> <script src="../../../js/jquery.js" type="text/javascript"></script> <script src="../../../js/i18n/grid.locale-en.js" type="text/javascript"></script> <script type="text/javascript"> $.jgrid.no_legacy_api = true; $.jgrid.useJSON = true; </script> <script src="../../../js/jquery.jqGrid.min.js" type="text/javascript"></script> <script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script> </head> <body> <div> <?php include ("grid.php");?> </div> <br/> <?php tabs(array("grid.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/searching/search_template/default.php
PHP
gpl2
1,415
<?php require_once '../../../jq-config.php'; // include the jqGrid Class require_once ABSPATH."php/jqGrid.php"; // include the driver class require_once ABSPATH."php/jqGridPdo.php"; require_once ABSPATH."php/jqCalendar.php"; // Connection to the server $conn = new PDO(DB_DSN,DB_USER,DB_PASSWORD); // Tell the db that we use utf-8 $conn->query("SET NAMES utf8"); // Create the jqGrid instance $grid = new jqGridRender($conn); // Write the SQL Query $grid->SelectCommand = 'SELECT OrderID, OrderDate, CustomerID, ShipName, Freight FROM orders'; // Set output format to json $grid->dataType = 'json'; // Let the grid create the model $grid->setColModel(); // Set the url from where we obtain the data $grid->setUrl('grid.php'); // Set some grid options $grid->setGridOptions(array( "rowNum"=>10, "rowList"=>array(10,20,30), "sortname"=>"OrderID" )); // Change some property of the field(s) $grid->setColProperty("OrderDate", array( "formatter"=>"date", "formatoptions"=>array("srcformat"=>"Y-m-d H:i:s","newformat"=>"m/d/Y") ) ); $grid->setColProperty("ShipName", array("width"=>"200")); // Enable navigator $grid->navigator = true; // Enable search // By default we have multiple search enabled $grid->setNavOptions('navigator', array("excel"=>false,"add"=>false,"edit"=>false,"del"=>false,"view"=>false)); $template1 = '{ "groupOp": "AND", "rules": [ { "field": "CustomerID", "op": "bw", "data": "W" }, { "field": "Freight", "op": "le", "data": "1"} ] }'; $template2 = '{ "groupOp": "AND", "rules": [ { "field": "ShipName", "op": "eq", "data": "Alfreds Futterkiste" }, { "field": "OrderID", "op": "le", "data": "10800"} ] }'; // In order to enable the more complex search we should set multipleGroup option // Also we need show query too $grid->setNavOptions('search', array( "multipleGroup"=>true, "showQuery"=>true, // set the names of the template "tmplNames"=>array("Template One", "Template Two"), // set the template contents "tmplFilters"=>array($template1, $template2) )); // Enjoy $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/searching/search_template/grid.php
PHP
gpl2
2,163
<?php require_once '../../../tabs.php'; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>jqGrid PHP Demo</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/redmond/jquery-ui-1.8.2.custom.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.jqgrid.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.multiselect.css" /> <style type="text"> html, body { margin: 0; /* Remove body margin/padding */ padding: 0; overflow: hidden; /* Remove scroll bars on browser window */ font-size: 75%; } </style> <script src="../../../js/jquery.js" type="text/javascript"></script> <script src="../../../js/i18n/grid.locale-en.js" type="text/javascript"></script> <script type="text/javascript"> $.jgrid.no_legacy_api = true; $.jgrid.useJSON = true; </script> <script src="../../../js/jquery.jqGrid.min.js" type="text/javascript"></script> <script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script> </head> <body> <div> <?php include ("grid.php");?> </div> <br/> <?php tabs(array("grid.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/searching/show_query/default.php
PHP
gpl2
1,415
<?php require_once '../../../jq-config.php'; // include the jqGrid Class require_once ABSPATH."php/jqGrid.php"; // include the driver class require_once ABSPATH."php/jqGridPdo.php"; // Connection to the server $conn = new PDO(DB_DSN,DB_USER,DB_PASSWORD); // Tell the db that we use utf-8 $conn->query("SET NAMES utf8"); // Create the jqGrid instance $grid = new jqGridRender($conn); // Write the SQL Query $grid->SelectCommand = 'SELECT OrderID, OrderDate, CustomerID, ShipName, Freight FROM orders'; // Set output format to json $grid->dataType = 'json'; // Let the grid create the model $grid->setColModel(); // Set the url from where we obtain the data $grid->setUrl('grid.php'); // Set some grid options $grid->setGridOptions(array( "rowNum"=>10, "rowList"=>array(10,20,30), "sortname"=>"OrderID" )); // Change some property of the field(s) $grid->setColProperty("OrderDate", array( "formatter"=>"date", "formatoptions"=>array("srcformat"=>"Y-m-d H:i:s","newformat"=>"m/d/Y") ) ); $grid->setColProperty("ShipName", array("width"=>"200")); // Enable navigator $grid->navigator = true; // Enable search // By default we have multiple search enabled $grid->setNavOptions('navigator', array("excel"=>false,"add"=>false,"edit"=>false,"del"=>false,"view"=>false)); // In order to enable the more complex search we should set multipleGroup option // Also we need show query roo $grid->setNavOptions('search', array( "multipleGroup"=>true, "showQuery"=>true )); // Enjoy $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/searching/show_query/grid.php
PHP
gpl2
1,576
<?php require_once '../../../tabs.php'; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>jqGrid PHP Demo</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/redmond/jquery-ui-1.8.2.custom.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.jqgrid.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.multiselect.css" /> <style type="text"> html, body { margin: 0; /* Remove body margin/padding */ padding: 0; overflow: hidden; /* Remove scroll bars on browser window */ font-size: 75%; } </style> <script src="../../../js/jquery.js" type="text/javascript"></script> <script src="../../../js/i18n/grid.locale-en.js" type="text/javascript"></script> <script type="text/javascript"> $.jgrid.no_legacy_api = true; $.jgrid.useJSON = true; </script> <script src="../../../js/jquery.jqGrid.min.js" type="text/javascript"></script> <script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script> </head> <body> <div> <?php include ("grid.php");?> </div> <br/> <?php tabs(array("grid.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/searching/search_dialog/default.php
PHP
gpl2
1,415
<?php require_once '../../../jq-config.php'; // include the jqGrid Class require_once ABSPATH."php/jqGrid.php"; // include the driver class require_once ABSPATH."php/jqGridPdo.php"; // Connection to the server $conn = new PDO(DB_DSN,DB_USER,DB_PASSWORD); // Tell the db that we use utf-8 $conn->query("SET NAMES utf8"); // Create the jqGrid instance $grid = new jqGridRender($conn); // Write the SQL Query $grid->SelectCommand = 'SELECT OrderID, OrderDate, CustomerID, ShipName, Freight FROM orders'; // Set output format to json $grid->dataType = 'json'; // Let the grid create the model $grid->setColModel(); // Set the url from where we obtain the data $grid->setUrl('grid.php'); // Set some grid options $grid->setGridOptions(array( "rowNum"=>10, "rowList"=>array(10,20,30), "sortname"=>"OrderID" )); // Change some property of the field(s) $grid->setColProperty("OrderDate", array( "formatter"=>"date", "formatoptions"=>array("srcformat"=>"Y-m-d H:i:s","newformat"=>"m/d/Y") ) ); $grid->setColProperty("ShipName", array("width"=>"200")); // Enable navigator $grid->navigator = true; // Enable search $grid->setNavOptions('navigator', array("excel"=>false,"add"=>false,"edit"=>false,"del"=>false,"view"=>false)); // Activate single search $grid->setNavOptions('search',array("multipleSearch"=>false)); // Enjoy $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/searching/search_dialog/grid.php
PHP
gpl2
1,422
<?php require_once '../../../tabs.php'; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>jqGrid PHP Demo</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/redmond/jquery-ui-1.8.2.custom.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.jqgrid.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.multiselect.css" /> <style type="text"> html, body { margin: 0; /* Remove body margin/padding */ padding: 0; overflow: hidden; /* Remove scroll bars on browser window */ font-size: 75%; } </style> <script src="../../../js/jquery.js" type="text/javascript"></script> <script src="../../../js/i18n/grid.locale-en.js" type="text/javascript"></script> <script type="text/javascript"> $.jgrid.no_legacy_api = true; $.jgrid.useJSON = true; </script> <script src="../../../js/jquery.jqGrid.min.js" type="text/javascript"></script> <script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script> </head> <body> <div> <?php include ("grid.php");?> </div> <br/> <?php tabs(array("grid.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/searching/group_search/default.php
PHP
gpl2
1,415
<?php require_once '../../../jq-config.php'; // include the jqGrid Class require_once ABSPATH."php/jqGrid.php"; // include the driver class require_once ABSPATH."php/jqGridPdo.php"; // Connection to the server $conn = new PDO(DB_DSN,DB_USER,DB_PASSWORD); // Tell the db that we use utf-8 $conn->query("SET NAMES utf8"); // Create the jqGrid instance $grid = new jqGridRender($conn); // Write the SQL Query $grid->SelectCommand = 'SELECT OrderID, OrderDate, CustomerID, ShipName, Freight FROM orders'; // Set output format to json $grid->dataType = 'json'; // Let the grid create the model $grid->setColModel(); // Set the url from where we obtain the data $grid->setUrl('grid.php'); // Set some grid options $grid->setGridOptions(array( "rowNum"=>10, "rowList"=>array(10,20,30), "sortname"=>"OrderID" )); // Change some property of the field(s) $grid->setColProperty("OrderDate", array( "formatter"=>"date", "formatoptions"=>array("srcformat"=>"Y-m-d H:i:s","newformat"=>"m/d/Y") ) ); $grid->setColProperty("ShipName", array("width"=>"200")); // Enable navigator $grid->navigator = true; // Enable search // By default we have multiple search enabled $grid->setNavOptions('navigator', array("excel"=>false,"add"=>false,"edit"=>false,"del"=>false,"view"=>false)); // In order to enable the more complex search we should set multipleGroup option $grid->setNavOptions('search', array("multipleGroup"=>true)); // Enjoy $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/searching/group_search/grid.php
PHP
gpl2
1,522
<?php require_once '../../../tabs.php'; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>jqGrid PHP Demo</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/redmond/jquery-ui-1.8.2.custom.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.jqgrid.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.multiselect.css" /> <style type="text"> html, body { margin: 0; /* Remove body margin/padding */ padding: 0; overflow: hidden; /* Remove scroll bars on browser window */ font-size: 75%; } </style> <script src="../../../js/jquery.js" type="text/javascript"></script> <script src="../../../js/i18n/grid.locale-en.js" type="text/javascript"></script> <script type="text/javascript"> $.jgrid.no_legacy_api = true; $.jgrid.useJSON = true; </script> <script src="../../../js/jquery.jqGrid.min.js" type="text/javascript"></script> <script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script> </head> <body> <div> <?php include ("grid.php");?> </div> <br/> <?php tabs(array("grid.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/searching/multi_search_dialog/default.php
PHP
gpl2
1,415
<?php require_once '../../../jq-config.php'; // include the jqGrid Class require_once ABSPATH."php/jqGrid.php"; // include the driver class require_once ABSPATH."php/jqGridPdo.php"; // Connection to the server $conn = new PDO(DB_DSN,DB_USER,DB_PASSWORD); // Tell the db that we use utf-8 $conn->query("SET NAMES utf8"); // Create the jqGrid instance $grid = new jqGridRender($conn); // Write the SQL Query $grid->SelectCommand = 'SELECT OrderID, OrderDate, CustomerID, ShipName, Freight FROM orders'; // Set output format to json $grid->dataType = 'json'; // Let the grid create the model $grid->setColModel(); // Set the url from where we obtain the data $grid->setUrl('grid.php'); // Set some grid options $grid->setGridOptions(array( "rowNum"=>10, "rowList"=>array(10,20,30), "sortname"=>"OrderID" )); // Change some property of the field(s) $grid->setColProperty("OrderDate", array( "formatter"=>"date", "formatoptions"=>array("srcformat"=>"Y-m-d H:i:s","newformat"=>"m/d/Y") ) ); $grid->setColProperty("ShipName", array("width"=>"200")); // Enable navigator $grid->navigator = true; // Enable search $grid->setNavOptions('navigator', array("excel"=>false,"add"=>false,"edit"=>false,"del"=>false,"view"=>false)); // By default we have multiple search enabled // Enjoy $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/searching/multi_search_dialog/grid.php
PHP
gpl2
1,378
<?php require_once '../../../tabs.php'; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>jqGrid PHP Demo</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/redmond/jquery-ui-1.8.2.custom.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.jqgrid.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.multiselect.css" /> <style type="text"> html, body { margin: 0; /* Remove body margin/padding */ padding: 0; overflow: hidden; /* Remove scroll bars on browser window */ font-size: 75%; } </style> <script src="../../../js/jquery.js" type="text/javascript"></script> <script src="../../../js/i18n/grid.locale-en.js" type="text/javascript"></script> <script type="text/javascript"> $.jgrid.no_legacy_api = true; $.jgrid.useJSON = true; </script> <script src="../../../js/jquery.jqGrid.min.js" type="text/javascript"></script> <script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script> </head> <body> <div> <?php include ("grid.php");?> </div> <br/> <?php tabs(array("grid.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/searching/search_toolbar/default.php
PHP
gpl2
1,415
<?php require_once '../../../jq-config.php'; // include the jqGrid Class require_once ABSPATH."php/jqGrid.php"; // include the driver class require_once ABSPATH."php/jqGridPdo.php"; // Connection to the server $conn = new PDO(DB_DSN,DB_USER,DB_PASSWORD); // Tell the db that we use utf-8 $conn->query("SET NAMES utf8"); // Create the jqGrid instance $grid = new jqGridRender($conn); // Write the SQL Query $grid->SelectCommand = 'SELECT OrderID, RequiredDate, ShipName, ShipCity, Freight FROM orders'; // Set output format to json $grid->dataType = 'json'; // Let the grid create the model $grid->setColModel(); // Set the url from where we obtain the data $grid->setUrl('grid.php'); // Set some grid options $grid->setGridOptions(array( "rowNum"=>10, "rowList"=>array(10,20,30), "sortname"=>"OrderID" )); // Change some property of the field(s) $grid->setColProperty("RequiredDate", array( "formatter"=>"date", "formatoptions"=>array("srcformat"=>"Y-m-d H:i:s","newformat"=>"m/d/Y") ) ); $grid->setColProperty("ShipName", array("width"=>"200")); // Enable filter toolbar searching $grid->toolbarfilter = true; // we set the select for ship city $grid->setSelect("ShipCity", "SELECT DISTINCT ShipCity, ShipCity AS CityName FROM orders ORDER BY 2", false, false, true, array(""=>"All")); $grid->navigator = true; $grid->setNavOptions('navigator', array("excel"=>false,"add"=>false,"edit"=>false,"del"=>false,"view"=>false, "search"=>false)); // Enjoy $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/searching/search_toolbar/grid.php
PHP
gpl2
1,557
<?php require_once '../../../tabs.php'; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>jqGrid PHP Demo</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/redmond/jquery-ui-1.8.2.custom.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.jqgrid.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.multiselect.css" /> <style type="text"> html, body { margin: 0; /* Remove body margin/padding */ padding: 0; overflow: hidden; /* Remove scroll bars on browser window */ font-size: 75%; } </style> <script src="../../../js/jquery.js" type="text/javascript"></script> <script src="../../../js/i18n/grid.locale-en.js" type="text/javascript"></script> <script type="text/javascript"> $.jgrid.no_legacy_api = true; $.jgrid.useJSON = true; </script> <script src="../../../js/jquery.jqGrid.min.js" type="text/javascript"></script> <script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script> </head> <body> <div> <?php include ("grid.php");?> </div> <br/> <?php tabs(array("grid.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/searching/client_validation/default.php
PHP
gpl2
1,415
<?php require_once '../../../jq-config.php'; // include the jqGrid Class require_once ABSPATH."php/jqGrid.php"; // include the driver class require_once ABSPATH."php/jqGridPdo.php"; require_once ABSPATH."php/jqCalendar.php"; // Connection to the server $conn = new PDO(DB_DSN,DB_USER,DB_PASSWORD); // Tell the db that we use utf-8 $conn->query("SET NAMES utf8"); // Create the jqGrid instance $grid = new jqGridRender($conn); // Write the SQL Query $grid->SelectCommand = 'SELECT OrderID, OrderDate, CustomerID, ShipName, Freight FROM orders'; // Set output format to json $grid->dataType = 'json'; // Let the grid create the model $grid->setColModel(); // Set the url from where we obtain the data $grid->setUrl('grid.php'); // Set some grid options $grid->setGridOptions(array( "rowNum"=>10, "rowList"=>array(10,20,30), "sortname"=>"OrderID" )); // Change some property of the field(s) $grid->setColProperty("OrderDate", array( "formatter"=>"date", "formatoptions"=>array("srcformat"=>"Y-m-d H:i:s","newformat"=>"m/d/Y") ) ); $grid->setColProperty("ShipName", array("width"=>"200")); // Enable navigator $grid->navigator = true; // Enable search // By default we have multiple search enabled $grid->setNavOptions('navigator', array("excel"=>false,"add"=>false,"edit"=>false,"del"=>false,"view"=>false)); // In order to enable the more complex search we should set multipleGroup option // Also we need show query roo $grid->setNavOptions('search', array( "multipleGroup"=>true, "showQuery"=>true )); // client side validation when search $grid->setColProperty('OrderID', array( "searchrules"=>array( "required"=>true, "number"=>true, "minValue"=>10200 ) )); $grid->setDatepicker('OrderDate'); // Enjoy $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/searching/client_validation/grid.php
PHP
gpl2
1,820
<?php require_once '../../../tabs.php'; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>jqGrid PHP Demo</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/redmond/jquery-ui-1.8.2.custom.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.jqgrid.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.multiselect.css" /> <style type="text"> html, body { margin: 0; /* Remove body margin/padding */ padding: 0; overflow: hidden; /* Remove scroll bars on browser window */ font-size: 75%; } .ui-elipsis {text-overflow:ellipsis; -moz-binding:url('../../../themes/ellipsis-xbl.xml#ellipsis') } </style> <script src="../../../js/jquery.js" type="text/javascript"></script> <script src="../../../js/i18n/grid.locale-en.js" type="text/javascript"></script> <script type="text/javascript"> $.jgrid.no_legacy_api = true; $.jgrid.useJSON = true; </script> <script src="../../../js/jquery.jqGrid.min.js" type="text/javascript"></script> <script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script> </head> <body> <div> <?php include ("grid.php");?> </div> <br/> <?php tabs(array("grid.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/loading_data/million_sql/default.php
PHP
gpl2
1,518
<?php require_once '../../../jq-config.php'; // include the jqGrid Class require_once ABSPATH."php/jqGrid.php"; // include the driver class require_once ABSPATH."php/jqGridPdo.php"; // Connection to the server $conn = new PDO(DB_DSN,DB_USER,DB_PASSWORD); // Tell the db that we use utf-8 $conn->query("SET NAMES utf8"); // Create the jqGrid instance $grid = new jqGridRender($conn); // Write the SQL Query $grid->SelectCommand = 'SELECT OrderID, OrderDate, CustomerID, Freight, ShipName FROM longorders'; // set the ouput format to json $grid->dataType = 'json'; // Let the grid create the model $grid->setColModel(); // Set the url from where we obtain the data $grid->setUrl('grid.php'); // Set some grid options $grid->setGridOptions(array("rowNum"=>100,"sortname"=>"OrderID","height"=>150)); // Change some property of the field(s) $grid->setColProperty("OrderDate", array( "formatter"=>"date", "formatoptions"=>array("srcformat"=>"Y-m-d H:i:s","newformat"=>"m/d/Y"), "search"=>false ) ); $grid->setColProperty("ShipName",array("classes"=>"ui-ellipsis")); // Enable toolbar searching $grid->toolbarfilter = true; $grid->setFilterOptions(array("stringResult"=>true)); // Enjoy $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/loading_data/million_sql/grid.php
PHP
gpl2
1,279
<?php require_once '../../../tabs.php'; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>jqGrid PHP Demo</title> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/redmond/jquery-ui-1.8.2.custom.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.jqgrid.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.multiselect.css" /> <style type="text"> html, body { margin: 0; /* Remove body margin/padding */ padding: 0; overflow: hidden; /* Remove scroll bars on browser window */ font-size: 75%; } </style> <script src="../../../js/jquery.js" type="text/javascript"></script> <script src="../../../js/i18n/grid.locale-en.js" type="text/javascript"></script> <script type="text/javascript"> $.jgrid.no_legacy_api = true; $.jgrid.useJSON = true; </script> <script src="../../../js/jquery.jqGrid.min.js" type="text/javascript"></script> <script src="../../../js/jquery-ui-1.8.2.custom.min.js" type="text/javascript"></script> </head> <body> <div> <?php include ("grid.php");?> </div> <br/> <?php tabs(array("grid.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/loading_data/multiple/default.php
PHP
gpl2
1,347
<?php require_once '../../../jq-config.php'; // include the jqGrid Class require_once ABSPATH."php/jqGrid.php"; // include the driver class require_once ABSPATH."php/jqGridPdo.php"; // Connection to the server $conn = new PDO(DB_DSN,DB_USER,DB_PASSWORD); // Tell the db that we use utf-8 $conn->query("SET NAMES utf8"); // Create the jqGrid instance $grid = new jqGridRender($conn); // Write the SQL Query $grid->SelectCommand = 'SELECT orders.OrderID, orders.OrderDate, orders.CustomerID, customers.CompanyName, orders.Freight, orders.ShipName FROM orders, customers WHERE orders.CustomerID=customers.CustomerID'; // set the ouput format to json $grid->dataType = 'json'; // Let the grid create the model $grid->setColModel(); // Set the url from where we obtain the data $grid->setUrl('grid.php'); // Set grid caption using the option caption $grid->setGridOptions(array( "caption"=>"Arbitrary SQL in action", "rowNum"=>10, "sortname"=>"OrderID", "hoverrows"=>true, "rowList"=>array(10,20,50), )); // Change some property of the field(s) $grid->setColProperty("OrderID", array("label"=>"ID", "width"=>60)); $grid->setColProperty("CustomerID", array("hidden"=>true)); $grid->setColProperty("OrderDate", array( "formatter"=>"date", "formatoptions"=>array("srcformat"=>"Y-m-d H:i:s","newformat"=>"m/d/Y") ) ); // Enjoy $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/loading_data/multiple/grid.php
PHP
gpl2
1,437
<?php require_once '../../../tabs.php'; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>jqGrid PHP Demo</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/redmond/jquery-ui-1.8.2.custom.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.jqgrid.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.multiselect.css" /> <style type="text"> html, body { margin: 0; /* Remove body margin/padding */ padding: 0; overflow: hidden; /* Remove scroll bars on browser window */ font-size: 75%; } </style> <script src="../../../js/jquery.js" type="text/javascript"></script> <script src="../../../js/i18n/grid.locale-en.js" type="text/javascript"></script> <script type="text/javascript"> $.jgrid.no_legacy_api = true; $.jgrid.useJSON = true; </script> <script src="../../../js/jquery.jqGrid.min.js" type="text/javascript"></script> <script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script> <script type="text/javascript"> jQuery(document).ready(function(){ jQuery("#loadgrid").click(function(){ $.ajax({ url: "grid.php", dataType : "html", data : {gridheigh: "300"}, success : function(data) { $("#griddef").html( data ); $("#loadgrid").remove(); } }); }); }); </script> </head> <body> <div> <button id="loadgrid">LoadGrid</button> <div id="griddef"></div> </div> <br/> <?php tabs(array("grid.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/loading_data/dynamicgrid/default.php
PHP
gpl2
1,790
<?php require_once '../../../jq-config.php'; // include the jqGrid Class require_once ABSPATH."php/jqGrid.php"; // include the driver class require_once ABSPATH."php/jqGridPdo.php"; // Connection to the server $conn = new PDO(DB_DSN,DB_USER,DB_PASSWORD); // Tell the db that we use utf-8 $conn->query("SET NAMES utf8"); // Create the jqGrid instance $grid = new jqGridRender($conn); // this table is 1252 encoded, so we need to tell the grid // Set the table data source $grid->setTable('products'); // set the ouput format to xml since json have problems $grid->dataType = 'json'; // Let the grid create the model $grid->setColModel(); // Set the url from where we obtain the data $grid->setUrl('grid.php'); // Set some grid options //get the height passed as parameter $height = jqGridUtils::GetParam('gridheigh', '200'); $grid->setGridOptions(array( "rowNum"=>10, "rowList"=>array(10,20,30), "sortname"=>"ProductID", "height"=>$height, "shrinkToFit"=>false, "hoverrows"=>true )); $grid->setColProperty("ProductID", array("width"=>80)); // We can hide some columns $grid->setColProperty("SupplierID", array("hidden"=>true)); $grid->setColProperty("CategoryID", array("hidden"=>true)); $grid->setColProperty("UnitsOnOrder", array("hidden"=>true)); $grid->setColProperty("ReorderLevel", array("hidden"=>true)); $grid->setColProperty("Discontinued", array("hidden"=>true)); // Enable toolbar searching $grid->toolbarfilter = true; $grid->setFilterOptions(array("stringResult"=>true)); // Enjoy $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/loading_data/dynamicgrid/grid.php
PHP
gpl2
1,587
<?php require_once '../../../tabs.php'; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>jqGrid PHP Demo</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/redmond/jquery-ui-1.8.2.custom.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.jqgrid.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.multiselect.css" /> <style type="text"> html, body { margin: 0; /* Remove body margin/padding */ padding: 0; overflow: hidden; /* Remove scroll bars on browser window */ font-size: 75%; } </style> <script src="../../../js/jquery.js" type="text/javascript"></script> <script src="../../../js/i18n/grid.locale-en.js" type="text/javascript"></script> <script type="text/javascript"> $.jgrid.no_legacy_api = true; $.jgrid.useJSON = true; </script> <script src="../../../js/jquery.jqGrid.min.js" type="text/javascript"></script> <script src="../../../js/jquery-ui-1.8.2.custom.min.js" type="text/javascript"></script> </head> <body> <div> <?php include ("grid.php");?> </div> <br/> <?php tabs(array("grid.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/loading_data/array_data/default.php
PHP
gpl2
1,421
<?php //ini_set("display_errors","1"); require_once '../../../jq-config.php'; // include the jqGrid Class require_once ABSPATH."php/jqGrid.php"; // include the driver class require_once ABSPATH."php/jqGridArray.php"; // create the array connection $conn = new jqGridArray(); // Create the jqGrid instance $grid = new jqGridRender($conn); // Create a random array data for ($i = 0; $i < 1000; $i++) { $data1[$i]['id'] = $i+1; $data1[$i]['foo'] = md5(rand(0, 10000)); $data1[$i]['bar'] = 'bar'.($i+1); } // Always you can use SELECT * FROM data1 $grid->SelectCommand = "SELECT id, foo, bar FROM data1"; $grid->dataType = 'json'; $grid->setPrimaryKeyId('id'); $grid->setColModel(); // Enable navigator $grid->setUrl('grid.php'); $grid->setGridOptions(array( "rowNum"=>10, "rowList"=>array(10,20,30), "sortname"=>"id" )); $grid->navigator = true; // Enable search $grid->setNavOptions('navigator', array("excel"=>false,"add"=>false,"edit"=>false,"del"=>false,"view"=>false,"csv"=>true, "pdf"=>true)); // Activate single search $grid->setNavOptions('search',array("multipleSearch"=>false)); // Enjoy $grid->renderGrid('#grid','#pager',true, null, null, true,true); ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/loading_data/array_data/grid.php
PHP
gpl2
1,187
<?php require_once '../../../tabs.php'; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>jqGrid PHP Demo</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/redmond/jquery-ui-1.8.2.custom.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.jqgrid.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.multiselect.css" /> <style type="text"> html, body { margin: 0; /* Remove body margin/padding */ padding: 0; overflow: hidden; /* Remove scroll bars on browser window */ font-size: 75%; } </style> <script src="../../../js/jquery.js" type="text/javascript"></script> <script src="../../../js/i18n/grid.locale-en.js" type="text/javascript"></script> <script type="text/javascript"> $.jgrid.no_legacy_api = true; $.jgrid.useJSON = true; </script> <script src="../../../js/jquery.jqGrid.min.js" type="text/javascript"></script> <script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script> </head> <body> <div> <?php include ("grid.php");?> </div> <br/> <?php tabs(array("grid.php","subgrid.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/loading_data/subgridlocal/default.php
PHP
gpl2
1,428
<?php require_once '../../../jq-config.php'; // include the jqGrid Class require_once ABSPATH."php/jqGrid.php"; // include the driver class //require_once ABSPATH."php/jqGridPdo.php"; require_once ABSPATH."php/jqGridArray.php"; // Get the needed parameters passed from the main grid // By default we add to postData subgrid and rowid parameters in the main grid $subtable = jqGridUtils::Strip($_REQUEST["subgrid"]); $rowid = jqGridUtils::Strip($_REQUEST["rowid"]); // Custom connection and query $myconn = new PDO(DB_DSN,DB_USER,DB_PASSWORD); $myconn->query("SET NAMES utf8"); //execute the query specifical to your database $sth = $myconn->prepare('SELECT OrderID, RequiredDate, ShipName, ShipCity, Freight FROM orders WHERE CustomerID = "'.$rowid.'"'); //$sth->bindParam(1,$rowid); $sth->execute(); // get the data as array. Nothe the the customer array // is passed in the select command $orders = $sth->fetchAll(PDO::FETCH_ASSOC); // end of custom code if(count($orders) == 0) return "[]"; // create the array connection $conn = new jqGridArray(); if(!$subtable && !$rowid) die("Missed parameters"); // Create the jqGrid instance $grid = new jqGridRender($conn); // Write the SQL Query $grid->SelectCommand = "SELECT * FROM orders"; // set the ouput format to json $grid->dataType = 'json'; // Let the grid create the model $grid->setColModel(); // Set the url from where we obtain the data $grid->setUrl('subgrid.php'); // Set some grid options $grid->setGridOptions(array( "width"=>540, "rowNum"=>10, "sortname"=>"OrderID", "height"=>110, "postData"=>array("subgrid"=>$subtable,"rowid"=>$rowid))); // Change some property of the field(s) $grid->setColProperty("RequiredDate", array( "formatter"=>"date", "formatoptions"=>array("srcformat"=>"Y-m-d H:i:s","newformat"=>"m/d/Y"), "search"=>false ) ); $grid->navigator = true; $grid->setNavOptions('navigator', array("excel"=>false,"add"=>false,"edit"=>false,"del"=>false,"view"=>false)); // Enjoy $subtable = $subtable."_t"; $pager = $subtable."_p"; $grid->renderGrid($subtable,$pager, true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/loading_data/subgridlocal/subgrid.php
PHP
gpl2
2,133
<?php ini_set("display_errors",1); require_once '../../../jq-config.php'; // include the jqGrid Class require_once ABSPATH."php/jqGrid.php"; // include the driver class require_once ABSPATH."php/jqGridArray.php"; // Connection to to your server server $myconn = new PDO(DB_DSN,DB_USER,DB_PASSWORD); function get_main_grid(){ global $myconn, $customers; $myconn->query("SET NAMES utf8"); //execute the query specifical to your database $sth = $myconn->prepare('SELECT CustomerID, CompanyName, ContactName, Phone, City FROM customers'); $sth->execute(); // get the data as array. Nothe the the customer array // is passed in the select command $customers = $sth->fetchAll(PDO::FETCH_ASSOC); // end of custom code //var_dump($customers); // create the array connection $conn = new jqGridArray(); // Create the jqGrid instance $grid = new jqGridRender($conn); // Write the SQL Query $grid->SelectCommand = 'SELECT * FROM customers'; // Set the table to where you update the data $grid->table = 'customers'; // Set output format to json $grid->dataType = 'json'; $grid->setPrimaryKeyId("CustomerID"); // Let the grid create the model $grid->setColModel(); // Set the url from where we obtain the data $grid->setUrl('grid.php'); // Set some grid options $grid->setGridOptions(array( "rowNum"=>10, "height"=>250, "rowList"=>array(10,20,30), "sortname"=>"CustomerID" )); $grid->setColProperty('CustomerID', array("label"=>"ID", "width"=>50)); $grid->setSubGridGrid("subgrid.php"); // Enable navigator $grid->navigator = true; // Enable only editing $grid->setNavOptions('navigator', array("excel"=>false,"add"=>false,"edit"=>false,"del"=>false,"view"=>false)); // Enjoy $grid->renderGrid('#grid','#pager',true, null, null, true,true); } //call the function get_main_grid(); ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/loading_data/subgridlocal/grid.php
PHP
gpl2
1,792
<?php require_once '../../../tabs.php'; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>jqGrid PHP Demo</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/redmond/jquery-ui-1.8.2.custom.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.jqgrid.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.multiselect.css" /> <style type="text"> html, body { margin: 0; /* Remove body margin/padding */ padding: 0; overflow: hidden; /* Remove scroll bars on browser window */ font-size: 75%; } </style> <script src="../../../js/jquery.js" type="text/javascript"></script> <script src="../../../js/i18n/grid.locale-en.js" type="text/javascript"></script> <script type="text/javascript"> $.jgrid.no_legacy_api = true; $.jgrid.useJSON = true; </script> <script src="../../../js/jquery.jqGrid.min.js" type="text/javascript"></script> <script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script> </head> <body> <div> <?php include ("grid.php");?> </div> <br/> <?php tabs(array("grid.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/loading_data/datatable/default.php
PHP
gpl2
1,415
<?php require_once '../../../jq-config.php'; // include the jqGrid Class require_once ABSPATH."php/jqGrid.php"; // include the driver class require_once ABSPATH."php/jqGridPdo.php"; // Connection to the server $conn = new PDO(DB_DSN,DB_USER,DB_PASSWORD); // Tell the db that we use utf-8 $conn->query("SET NAMES utf8"); // Create the jqGrid instance $grid = new jqGridRender($conn); // this table is 1252 encoded, so we need to tell the grid // Set the table data source $grid->setTable('products'); // set the ouput format to xml since json have problems $grid->dataType = 'xml'; // Let the grid create the model $grid->setColModel(); // Set the url from where we obtain the data $grid->setUrl('grid.php'); // Set some grid options $grid->setGridOptions(array("rowNum"=>10,"rowList"=>array(10,20,30),"sortname"=>"ProductID")); $grid->setColProperty("ProductID", array("width"=>80)); // We can hide some columns $grid->setColProperty("SupplierID", array("hidden"=>true)); $grid->setColProperty("CategoryID", array("hidden"=>true)); $grid->setColProperty("UnitsOnOrder", array("hidden"=>true)); $grid->setColProperty("ReorderLevel", array("hidden"=>true)); $grid->setColProperty("Discontinued", array("hidden"=>true)); // Enable toolbar searching $grid->toolbarfilter = true; $grid->setFilterOptions(array("stringResult"=>true)); // Enjoy $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/loading_data/datatable/grid.php
PHP
gpl2
1,421
<?php require_once '../../../tabs.php'; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>jqGrid PHP Demo</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/redmond/jquery-ui-1.8.2.custom.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.jqgrid.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.multiselect.css" /> <style type="text"> html, body { margin: 0; /* Remove body margin/padding */ padding: 0; overflow: hidden; /* Remove scroll bars on browser window */ font-size: 75%; } </style> <script src="../../../js/jquery.js" type="text/javascript"></script> <script src="../../../js/i18n/grid.locale-en.js" type="text/javascript"></script> <script type="text/javascript"> $.jgrid.no_legacy_api = true; //$.jgrid.useJSON = true; </script> <script src="../../../js/jquery.jqGrid.min.js" type="text/javascript"></script> <script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script> </head> <body> <div> <?php include ("grid.php");?> </div> <br/> <?php tabs(array("grid.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/loading_data/sqldatasource/default.php
PHP
gpl2
1,417
<?php require_once '../../../jq-config.php'; // include the jqGrid Class require_once ABSPATH."php/jqGrid.php"; // include the driver class require_once ABSPATH."php/jqGridPdo.php"; // Connection to the server $conn = new PDO(DB_DSN,DB_USER,DB_PASSWORD); // MySQL specific command for the charset // Tell the db that we use utf-8 $conn->query("SET NAMES utf8"); // Create the jqGrid instance $grid = new jqGridRender($conn); // Data from this SQL is 1252 encoded, so we need to tell the grid // Set the SQL Data source $grid->SelectCommand ='SELECT * FROM products'; // set the ouput format to XML $grid->dataType = 'json'; // Let the grid create the model $grid->setColModel(); // set labels in the header $grid->setColProperty("ProductID", array("label"=>"ID")); $grid->setColProperty("ProductName", array("label"=>"Name")); $grid->setColProperty("QuantityPerUnit", array("label"=>"Unit")); $grid->setColProperty("UnitPrice", array("label"=>"Unit Price")); // We can hide some columns $grid->setColProperty("SupplierID", array("hidden"=>true)); $grid->setColProperty("CategoryID", array("hidden"=>true)); $grid->setColProperty("UnitsOnOrder", array("hidden"=>true)); $grid->setColProperty("ReorderLevel", array("hidden"=>true)); $grid->setColProperty("Discontinued", array("hidden"=>true)); // Set the url from where we obtain the data $grid->setUrl('grid.php'); // Set some grid options $grid->setGridOptions(array("rowNum"=>10,"rowList"=>array(10,20,30),"sortname"=>"CategoryID")); // Enable toolbar searching $grid->toolbarfilter = true; $grid->setFilterOptions(array("stringResult"=>true)); // Enjoy $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/loading_data/sqldatasource/grid.php
PHP
gpl2
1,688
<?php require_once '../../../tabs.php'; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>jqGrid PHP Demo</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/redmond/jquery-ui-1.8.2.custom.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.jqgrid.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.multiselect.css" /> <style type="text"> html, body { margin: 0; /* Remove body margin/padding */ padding: 0; overflow: hidden; /* Remove scroll bars on browser window */ font-size: 75%; } </style> <script src="../../../js/jquery.js" type="text/javascript"></script> <script src="../../../js/i18n/grid.locale-en.js" type="text/javascript"></script> <script type="text/javascript"> $.jgrid.no_legacy_api = true; $.jgrid.useJSON = true; </script> <script src="../../../js/jquery.jqGrid.min.js" type="text/javascript"></script> <script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script> </head> <body> <div> <?php include ("grid.php");?> </div> <br/> <?php tabs(array("grid.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/loading_data/local_data/default.php
PHP
gpl2
1,415
<?php require_once '../../../jq-config.php'; // include the jqGrid Class require_once ABSPATH."php/jqGrid.php"; // Create the jqGrid instance $grid = new jqGridRender($conn); // Lets create the model manually $Model = array( array("name"=>"Integer","width"=>80, "formatter"=>"integer", "formatoptions"=>array("thousandsSeparator"=>","), "sorttype"=>"integer"), array("name"=>"Number","width"=>80, "formatter"=>"number", "formatoptions"=>array("decimalPlaces"=>1), "sorttype"=>"number"), array("name"=>"Currency","width"=>80, "formatter"=>"currency", "formatoptions"=>array("decimalPlaces"=>1,"thousandsSeparator"=>",","prefix"=>"$","suffix"=>" USD"), "sorttype"=>"currency"), array("name"=>"Email","width"=>120,"formatter"=>"email"), array("name"=>"Link","width"=>120,"formatter"=>"link"), array("name"=>"Checkbox","width"=>50,"formatter"=>"checkbox") ); // Let the grid create the model $grid->setColModel($Model); // Set grid option datatype to be local $grid->setGridOptions(array("datatype"=>"local")); //We can add data manually using arrays $data = array( array("Integer"=>200000,"Number"=>60000000.73,"Currency"=>34.2,"Email"=>"john.smith@yahoo.com","Link"=>"http://www.yahoo.com","Checkbox"=>"Yes"), array("Integer"=>1600000,"Number"=>75200000.23,"Currency"=>245.2,"Email"=>"joe.woe@google.com","Link"=>"http://www.google.com","Checkbox"=>"Yes"), array("Integer"=>652693,"Number"=>34534000.33,"Currency"=>18545.2,"Email"=>"julia.bergman@bing.com","Link"=>"http://www.bing.com","Checkbox"=>"No"), array("Integer"=>1237,"Number"=>3450.30,"Currency"=>55597545.2,"Email"=>"roy.corner@msn.com","Link"=>"http://www.msn.com","Checkbox"=>"No") ); // Let put it using the callGridMethod // Integer in the array acts as id column $grid->callGridMethod("#grid", 'addRowData', array("Integer",$data)); $grid->renderGrid('#grid','#pager',true, null, null, true,true); ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/loading_data/local_data/grid.php
PHP
gpl2
1,947
<?php require_once '../../../tabs.php'; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>jqGrid PHP Demo</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/redmond/jquery-ui-1.8.2.custom.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.jqgrid.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.multiselect.css" /> <style type="text"> html, body { margin: 0; /* Remove body margin/padding */ padding: 0; overflow: hidden; /* Remove scroll bars on browser window */ font-size: 75%; } </style> <script src="../../../js/jquery.js" type="text/javascript"></script> <script src="../../../js/i18n/grid.locale-en.js" type="text/javascript"></script> <script type="text/javascript"> $.jgrid.no_legacy_api = true; //$.jgrid.useJSON = true; </script> <script src="../../../js/jquery.jqGrid.min.js" type="text/javascript"></script> <script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script> </head> <body> <div> <?php include ("grid.php");?> </div> <br/> <?php tabs(array("grid.php","sqlxml.xml"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/loading_data/load_fromfile/default.php
PHP
gpl2
1,430
<?php require_once '../../../jq-config.php'; // include the jqGrid Class require_once ABSPATH."php/jqGrid.php"; // include the driver class require_once ABSPATH."php/jqGridPdo.php"; // Connection to the server $conn = new PDO(DB_DSN,DB_USER,DB_PASSWORD); // MySQL specific command for the charset $conn->query("SET NAMES utf8"); // Create the jqGrid instance $grid = new jqGridRender($conn); // Data from this SQL is 1252 encoded, so we need to tell the grid // Set the data source to be read from file $grid->readFromXML = true; // The first item is the xml file, the second is the query id $grid->SelectCommand ='sqlxml.getProducts'; // set the ouput format to XML $grid->dataType = 'xml'; // Let the grid create the model $grid->setColModel(); // set labels in the header $grid->setColProperty("ProductID", array("label"=>"ID")); $grid->setColProperty("ProductName", array("label"=>"Name")); $grid->setColProperty("QuantityPerUnit", array("label"=>"Unit")); $grid->setColProperty("UnitPrice", array("label"=>"Unit Price")); // We can hide some columns $grid->setColProperty("SupplierID", array("hidden"=>true)); $grid->setColProperty("CategoryID", array("hidden"=>true)); $grid->setColProperty("UnitsOnOrder", array("hidden"=>true)); $grid->setColProperty("ReorderLevel", array("hidden"=>true)); $grid->setColProperty("Discontinued", array("hidden"=>true)); // Set the url from where we obtain the data $grid->setUrl('grid.php'); // Set some grid options $grid->setGridOptions(array("rowNum"=>10,"rowList"=>array(10,20,30),"sortname"=>"CategoryID")); // Enable toolbar searching $grid->toolbarfilter = true; $grid->setFilterOptions(array("stringResult"=>true)); // Enjoy $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/loading_data/load_fromfile/grid.php
PHP
gpl2
1,756
<?php require_once '../../../tabs.php'; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>jqGrid PHP Demo</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/redmond/jquery-ui-1.8.2.custom.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.jqgrid.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.multiselect.css" /> <style type="text"> html, body { margin: 0; /* Remove body margin/padding */ padding: 0; overflow: hidden; /* Remove scroll bars on browser window */ font-size: 75%; } </style> <script src="../../../js/jquery.js" type="text/javascript"></script> <script src="../../../js/i18n/grid.locale-en.js" type="text/javascript"></script> <script type="text/javascript"> $.jgrid.no_legacy_api = true; $.jgrid.useJSON = true; </script> <script src="../../../js/jquery.jqGrid.min.js" type="text/javascript"></script> <script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script> </head> <body> <div> <?php include ("grid.php");?> </div> <br/> <?php tabs(array("grid.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/export/pdfsummary/default.php
PHP
gpl2
1,415
<?php require_once '../../../jq-config.php'; // include the jqGrid Class require_once ABSPATH."php/jqGrid.php"; // include the driver class require_once ABSPATH."php/jqGridPdo.php"; require_once(ABSPATH.'/php/tcpdf/config/lang/eng.php'); // Connection to the server $conn = new PDO(DB_DSN,DB_USER,DB_PASSWORD); // Tell the db that we use utf-8 $conn->query("SET NAMES utf8"); // Create the jqGrid instance $grid = new jqGridRender($conn); // Write the SQL Query $grid->SelectCommand = 'SELECT OrderID, OrderDate, CustomerID, ShipName, Freight FROM orders'; // Set output format to json $grid->dataType = 'json'; // Let the grid create the model $grid->setColModel(); // Set the url from where we obtain the data $grid->setUrl('grid.php'); // Set some grid options $grid->setGridOptions(array( "rowNum"=>10, "rowList"=>array(10,20,30), "sortname"=>"OrderID", "caption"=>"PDF export with summary rows" )); // Change some property of the field(s) $grid->setColProperty("OrderDate", array( "formatter"=>"date", "formatoptions"=>array("srcformat"=>"Y-m-d H:i:s","newformat"=>"m/d/Y"), "search"=>false ) ); $grid->setColProperty("ShipName", array("width"=>"250")); $grid->setColProperty("Freight", array("label"=>"Test", "align"=>"right")); // Enable navigator $grid->navigator = true; // Enable pdf export $grid->setNavOptions('navigator', array("pdf"=>true, "add"=>false,"edit"=>false,"del"=>false,"view"=>false, "excel"=>false)); // Set summary field $summaryrows=array("Freight"=>array("Freight"=>"SUM")); $oper = jqGridUtils::GetParam("oper"); if($oper == "pdf") { $grid->setPdfOptions(array( "header"=>true, "margin_top"=>27, "page_orientation"=>"P", "header_logo"=>"logo.gif", // set logo image width "header_logo_width"=>30, //header title "header_title"=>"jqGrid pdf table" )); } // Enjoy $grid->renderGrid('#grid','#pager',true, $summaryrows, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/export/pdfsummary/grid.php
PHP
gpl2
1,934
<?php require_once '../../../tabs.php'; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>jqGrid PHP Demo</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/redmond/jquery-ui-1.8.2.custom.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.jqgrid.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.multiselect.css" /> <style type="text"> html, body { margin: 0; /* Remove body margin/padding */ padding: 0; overflow: hidden; /* Remove scroll bars on browser window */ font-size: 75%; } </style> <script src="../../../js/jquery.js" type="text/javascript"></script> <script src="../../../js/i18n/grid.locale-en.js" type="text/javascript"></script> <script type="text/javascript"> $.jgrid.no_legacy_api = true; $.jgrid.useJSON = true; </script> <script src="../../../js/jquery.jqGrid.min.js" type="text/javascript"></script> <script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script> </head> <body> <div> <?php include ("grid.php");?> </div> <br/> <?php tabs(array("grid.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/export/pdfland/default.php
PHP
gpl2
1,415
<?php require_once '../../../jq-config.php'; // include the jqGrid Class require_once ABSPATH."php/jqGrid.php"; // include the driver class require_once ABSPATH."php/jqGridPdo.php"; require_once(ABSPATH.'/php/tcpdf/config/lang/eng.php'); // Connection to the server $conn = new PDO(DB_DSN,DB_USER,DB_PASSWORD); // Tell the db that we use utf-8 $conn->query("SET NAMES utf8"); // Create the jqGrid instance $grid = new jqGridRender($conn); // Write the SQL Query $grid->SelectCommand = 'SELECT OrderID, OrderDate, CustomerID, ShipName, Freight FROM orders'; // Set output format to json $grid->dataType = 'json'; // Let the grid create the model $grid->setColModel(); // Set the url from where we obtain the data $grid->setUrl('grid.php'); // Set some grid options $grid->setGridOptions(array( "rowNum"=>10, "rowList"=>array(10,20,30), "sortname"=>"OrderID", "caption"=>"PDF export Landscape" )); // Change some property of the field(s) $grid->setColProperty("OrderDate", array( "formatter"=>"date", "formatoptions"=>array("srcformat"=>"Y-m-d H:i:s","newformat"=>"m/d/Y"), "search"=>false ) ); $grid->setColProperty("ShipName", array("width"=>"250")); $grid->setColProperty("Freight", array("label"=>"Test", "align"=>"right")); // Enable navigator $grid->navigator = true; // Enable pdf export on navigator $grid->setNavOptions('navigator', array("pdf"=>true, "add"=>false,"edit"=>false,"del"=>false,"view"=>false, "excel"=>false)); $oper = jqGridUtils::GetParam("oper"); // prevent some executions when not excel export if($oper == "pdf") { $grid->setPdfOptions(array( // set the page orientation to landscape "page_orientation"=>"L", // enable header information "header"=>true, // set bigger top margin "margin_top"=>27, // set logo image "header_logo"=>"logo.gif", // set logo image width "header_logo_width"=>30, //header title "header_title"=>"jqGrid pdf table", // and a header string to print "header_string"=>"by Trirand Inc - www.trirand.net" )); } // Enjoy $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/export/pdfland/grid.php
PHP
gpl2
2,112
<?php require_once '../../../tabs.php'; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>jqGrid PHP Demo</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/redmond/jquery-ui-1.8.2.custom.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.jqgrid.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.multiselect.css" /> <style type="text"> html, body { margin: 0; /* Remove body margin/padding */ padding: 0; overflow: hidden; /* Remove scroll bars on browser window */ font-size: 75%; } </style> <script src="../../../js/jquery.js" type="text/javascript"></script> <script src="../../../js/i18n/grid.locale-en.js" type="text/javascript"></script> <script type="text/javascript"> $.jgrid.no_legacy_api = true; $.jgrid.useJSON = true; </script> <script src="../../../js/jquery.jqGrid.min.js" type="text/javascript"></script> <script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script> </head> <body> <div> <?php include ("grid.php");?> </div> <br/> <?php tabs(array("grid.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/export/excelsummary/default.php
PHP
gpl2
1,415
<?php require_once '../../../jq-config.php'; // include the jqGrid Class require_once ABSPATH."php/jqGrid.php"; // include the driver class require_once ABSPATH."php/jqGridPdo.php"; // Connection to the server $conn = new PDO(DB_DSN,DB_USER,DB_PASSWORD); // Tell the db that we use utf-8 $conn->query("SET NAMES utf8"); // Create the jqGrid instance $grid = new jqGridRender($conn); // Write the SQL Query $grid->SelectCommand = 'SELECT OrderID, OrderDate, CustomerID, ShipName, Freight FROM orders'; // Set output format to json $grid->dataType = 'json'; // Let the grid create the model $grid->setColModel(); // Set the url from where we obtain the data $grid->setUrl('grid.php'); // Set some grid options $grid->setGridOptions(array( "rowNum"=>10, "rowList"=>array(10,20,30), "sortname"=>"OrderID", "caption"=>"Excel export with summary data" )); // Change some property of the field(s) $grid->setColProperty("OrderDate", array( "formatter"=>"date", "formatoptions"=>array("srcformat"=>"Y-m-d H:i:s","newformat"=>"m/d/Y"), "search"=>false ) ); $grid->setColProperty("ShipName", array("width"=>"200")); // Enable navigator $grid->navigator = true; // Enable excel export $grid->setNavOptions('navigator', array("excel"=>true,"add"=>false,"edit"=>false,"del"=>false,"view"=>false)); // Enjoy // Set summary field $summaryrows=array("Freight"=>array("Freight"=>"SUM")); $grid->renderGrid('#grid','#pager',true, $summaryrows, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/export/excelsummary/grid.php
PHP
gpl2
1,490
<?php require_once '../../../tabs.php'; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>jqGrid PHP Demo</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/redmond/jquery-ui-1.8.2.custom.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.jqgrid.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.multiselect.css" /> <style type="text"> html, body { margin: 0; /* Remove body margin/padding */ padding: 0; overflow: hidden; /* Remove scroll bars on browser window */ font-size: 75%; } </style> <script src="../../../js/jquery.js" type="text/javascript"></script> <script src="../../../js/i18n/grid.locale-en.js" type="text/javascript"></script> <script type="text/javascript"> $.jgrid.no_legacy_api = true; $.jgrid.useJSON = true; </script> <script src="../../../js/jquery.jqGrid.min.js" type="text/javascript"></script> <script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script> </head> <body> <div> <?php include ("grid.php");?> </div> <br/> <?php tabs(array("grid.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/export/pdf/default.php
PHP
gpl2
1,415
<?php require_once '../../../jq-config.php'; // include the jqGrid Class require_once ABSPATH."php/jqGrid.php"; // include the driver class require_once ABSPATH."php/jqGridPdo.php"; // LOAD lang file require_once(ABSPATH.'/php/tcpdf/config/lang/eng.php'); // Connection to the server $conn = new PDO(DB_DSN,DB_USER,DB_PASSWORD); // Tell the db that we use utf-8 $conn->query("SET NAMES utf8"); // Create the jqGrid instance $grid = new jqGridRender($conn); // Write the SQL Query $grid->SelectCommand = 'SELECT OrderID, OrderDate, CustomerID, ShipName, Freight FROM orders'; // Set output format to json $grid->dataType = 'json'; // Let the grid create the model $grid->setColModel(); // Set the url from where we obtain the data $grid->setUrl('grid.php'); // Set some grid options $grid->setGridOptions(array( "rowNum"=>10, "rowList"=>array(10,20,30), "sortname"=>"OrderID", "caption"=>"PDF export" )); // Change some property of the field(s) $grid->setColProperty("OrderDate", array( "formatter"=>"date", "formatoptions"=>array("srcformat"=>"Y-m-d H:i:s","newformat"=>"m/d/Y"), "search"=>false ) ); $grid->setColProperty("ShipName", array("width"=>"250")); $grid->setColProperty("Freight", array("label"=>"Test", "align"=>"right")); // Enable navigator $grid->navigator = true; // Enable excel export $grid->setNavOptions('navigator', array("pdf"=>true,"add"=>false,"edit"=>false,"del"=>false,"view"=>false, "excel"=>false)); // Enjoy $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/export/pdf/grid.php
PHP
gpl2
1,551
<?php require_once '../../../tabs.php'; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>jqGrid PHP Demo</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/redmond/jquery-ui-1.8.2.custom.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.jqgrid.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.multiselect.css" /> <style type="text"> html, body { margin: 0; /* Remove body margin/padding */ padding: 0; overflow: hidden; /* Remove scroll bars on browser window */ font-size: 75%; } </style> <script src="../../../js/jquery.js" type="text/javascript"></script> <script src="../../../js/i18n/grid.locale-en.js" type="text/javascript"></script> <script type="text/javascript"> $.jgrid.no_legacy_api = true; $.jgrid.useJSON = true; </script> <script src="../../../js/jquery.jqGrid.min.js" type="text/javascript"></script> <script src="../../../js/jquery-ui-1.8.2.custom.min.js" type="text/javascript"></script> </head> <body> <div> <?php include ("grid.php");?> </div> <br/> <?php tabs(array("grid.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/export/csvcomma/default.php
PHP
gpl2
1,421
<?php require_once '../../../jq-config.php'; // include the jqGrid Class require_once ABSPATH."php/jqGrid.php"; // include the driver class require_once ABSPATH."php/jqGridPdo.php"; // Connection to the server $conn = new PDO(DB_DSN,DB_USER,DB_PASSWORD); // Tell the db that we use utf-8 $conn->query("SET NAMES utf8"); // Create the jqGrid instance $grid = new jqGridRender($conn); $grid->csvsep =","; $grid->csvfile ="mycsvfile.csv"; // Write the SQL Query $grid->SelectCommand = 'SELECT OrderID, OrderDate, CustomerID, ShipName, Freight FROM orders'; // Set output format to json $grid->dataType = 'json'; // Let the grid create the model $grid->setColModel(); // Set the url from where we obtain the data $grid->setUrl('grid.php'); // Set some grid options $grid->setGridOptions(array( "rowNum"=>10, "rowList"=>array(10,20,30), "sortname"=>"OrderID", "caption"=>"Simple CSV export" )); // Change some property of the field(s) $grid->setColProperty("OrderDate", array( "formatter"=>"date", "formatoptions"=>array("srcformat"=>"Y-m-d H:i:s","newformat"=>"m/d/Y"), "search"=>false ) ); $grid->setColProperty("ShipName", array("width"=>"250")); $grid->setColProperty("Freight", array("label"=>"Test", "align"=>"right")); // Enable navigator $grid->navigator = true; // Enable csv export $grid->setNavOptions('navigator', array("csv"=>true, "add"=>false,"edit"=>false,"del"=>false,"view"=>false, "excel"=>false)); // Enjoy $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/export/csvcomma/grid.php
PHP
gpl2
1,536
<?php require_once '../../../tabs.php'; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>jqGrid PHP Demo</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/redmond/jquery-ui-1.8.2.custom.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.jqgrid.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.multiselect.css" /> <style type="text"> html, body { margin: 0; /* Remove body margin/padding */ padding: 0; overflow: hidden; /* Remove scroll bars on browser window */ font-size: 75%; } </style> <script src="../../../js/jquery.js" type="text/javascript"></script> <script src="../../../js/i18n/grid.locale-en.js" type="text/javascript"></script> <script type="text/javascript"> $.jgrid.no_legacy_api = true; $.jgrid.useJSON = true; </script> <script src="../../../js/jquery.jqGrid.min.js" type="text/javascript"></script> <script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script> </head> <body> <div> <?php include ("grid.php");?> </div> <br/> <?php tabs(array("grid.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/export/csvsummary/default.php
PHP
gpl2
1,415
<?php require_once '../../../jq-config.php'; // include the jqGrid Class require_once ABSPATH."php/jqGrid.php"; // include the driver class require_once ABSPATH."php/jqGridPdo.php"; // Connection to the server $conn = new PDO(DB_DSN,DB_USER,DB_PASSWORD); // Tell the db that we use utf-8 $conn->query("SET NAMES utf8"); // Create the jqGrid instance $grid = new jqGridRender($conn); // Write the SQL Query $grid->SelectCommand = 'SELECT OrderID, OrderDate, CustomerID, ShipName, Freight FROM orders'; // Set output format to json $grid->dataType = 'json'; // Let the grid create the model $grid->setColModel(); // Set the url from where we obtain the data $grid->setUrl('grid.php'); // Set some grid options $grid->setGridOptions(array( "rowNum"=>10, "rowList"=>array(10,20,30), "sortname"=>"OrderID", "caption"=>"CSV export with summary field" )); // Change some property of the field(s) $grid->setColProperty("OrderDate", array( "formatter"=>"date", "formatoptions"=>array("srcformat"=>"Y-m-d H:i:s","newformat"=>"m/d/Y"), "search"=>false ) ); $grid->setColProperty("ShipName", array("width"=>"250")); $grid->setColProperty("Freight", array("label"=>"Test", "align"=>"right")); // Enable navigator $grid->navigator = true; // Enable excel csv $grid->setNavOptions('navigator', array("csv"=>true, "add"=>false,"edit"=>false,"del"=>false,"view"=>false, "excel"=>false)); // Set summary field and passit to the grid renderer $summaryrows=array("Freight"=>array("Freight"=>"SUM")); // Enjoy $grid->renderGrid('#grid','#pager',true, $summaryrows, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/export/csvsummary/grid.php
PHP
gpl2
1,612
<?php require_once '../../../tabs.php'; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>jqGrid PHP Demo</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/redmond/jquery-ui-1.8.2.custom.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.jqgrid.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.multiselect.css" /> <style type="text"> html, body { margin: 0; /* Remove body margin/padding */ padding: 0; overflow: hidden; /* Remove scroll bars on browser window */ font-size: 75%; } </style> <script src="../../../js/jquery.js" type="text/javascript"></script> <script src="../../../js/i18n/grid.locale-en.js" type="text/javascript"></script> <script type="text/javascript"> $.jgrid.no_legacy_api = true; $.jgrid.useJSON = true; </script> <script src="../../../js/jquery.jqGrid.min.js" type="text/javascript"></script> <script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script> </head> <body> <div> <?php include ("grid.php");?> </div> <br/> <?php tabs(array("grid.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/export/excelcustom/default.php
PHP
gpl2
1,415
<?php require_once '../../../jq-config.php'; // include the jqGrid Class require_once ABSPATH."php/jqGrid.php"; // include the driver class require_once ABSPATH."php/jqGridPdo.php"; // Connection to the server $conn = new PDO(DB_DSN,DB_USER,DB_PASSWORD); // Tell the db that we use utf-8 $conn->query("SET NAMES utf8"); // Create the jqGrid instance $grid = new jqGridRender($conn); // Write the SQL Query $grid->SelectCommand = 'SELECT OrderID, OrderDate, CustomerID, ShipName, Freight FROM orders a'; //$grid->debug = true; // Set up different query for the export to excel // Also this command is valid for all exporting modules. $grid->ExportCommand = 'SELECT a.OrderID, a.OrderDate, b.CompanyName, a.ShipName, a.Freight, a.CustomerID FROM orders a, customers b WHERE a.CustomerID=b.CustomerID'; // Set output format to json $grid->dataType = 'json'; // Let the grid create the model $grid->setColModel(); // Set the url from where we obtain the data $grid->setUrl('grid.php'); // Set some grid options $grid->setGridOptions(array( "rowNum"=>10, "rowList"=>array(10,20,30), "sortname"=>"OrderID", "caption"=>"Excel export custom SQL" )); // Change some property of the field(s) $grid->setColProperty("OrderDate", array( "formatter"=>"date", "formatoptions"=>array("srcformat"=>"Y-m-d H:i:s","newformat"=>"m/d/Y"), "search"=>false ) ); $grid->setColProperty("ShipName", array("width"=>"200")); // Enable navigator $grid->navigator = true; // Enable excel export $grid->setNavOptions('navigator', array("excel"=>true,"add"=>false,"edit"=>false,"del"=>false,"view"=>false)); // Enjoy $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/export/excelcustom/grid.php
PHP
gpl2
1,700
<?php require_once '../../../tabs.php'; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>jqGrid PHP Demo</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/redmond/jquery-ui-1.8.2.custom.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.jqgrid.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.multiselect.css" /> <style type="text"> html, body { margin: 0; /* Remove body margin/padding */ padding: 0; overflow: hidden; /* Remove scroll bars on browser window */ font-size: 75%; } </style> <script src="../../../js/jquery.js" type="text/javascript"></script> <script src="../../../js/i18n/grid.locale-en.js" type="text/javascript"></script> <script type="text/javascript"> $.jgrid.no_legacy_api = true; $.jgrid.useJSON = true; </script> <script src="../../../js/jquery.jqGrid.min.js" type="text/javascript"></script> <script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script> </head> <body> <div> <?php include ("grid.php");?> </div> <br/> <?php tabs(array("grid.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/export/excel/default.php
PHP
gpl2
1,415
<?php require_once '../../../jq-config.php'; // include the jqGrid Class require_once ABSPATH."php/jqGrid.php"; // include the driver class require_once ABSPATH."php/jqGridPdo.php"; // Connection to the server $conn = new PDO(DB_DSN,DB_USER,DB_PASSWORD); // Tell the db that we use utf-8 $conn->query("SET NAMES utf8"); // Create the jqGrid instance $grid = new jqGridRender($conn); // Write the SQL Query $grid->SelectCommand = 'SELECT OrderID, OrderDate, CustomerID, ShipName, Freight FROM orders'; // Set output format to json $grid->dataType = 'json'; // Let the grid create the model $grid->setColModel(); // Set the url from where we obtain the data $grid->setUrl('grid.php'); // Set some grid options $grid->setGridOptions(array( "rowNum"=>10, "rowList"=>array(10,20,30), "sortname"=>"OrderID", "caption"=>"Excel export" )); // Change some property of the field(s) $grid->setColProperty("OrderDate", array( "formatter"=>"date", "formatoptions"=>array("srcformat"=>"Y-m-d H:i:s","newformat"=>"m/d/Y"), "search"=>false ) ); $grid->setColProperty("ShipName", array("width"=>"200")); // Enable navigator $grid->navigator = true; // Enable excel export $grid->setNavOptions('navigator', array("excel"=>true,"add"=>false,"edit"=>false,"del"=>false,"view"=>false)); // Enjoy $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/export/excel/grid.php
PHP
gpl2
1,387
<?php require_once '../../../tabs.php'; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>jqGrid PHP Demo</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/redmond/jquery-ui-1.8.2.custom.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.jqgrid.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.multiselect.css" /> <style type="text"> html, body { margin: 0; /* Remove body margin/padding */ padding: 0; overflow: hidden; /* Remove scroll bars on browser window */ font-size: 75%; } </style> <script src="../../../js/jquery.js" type="text/javascript"></script> <script src="../../../js/i18n/grid.locale-en.js" type="text/javascript"></script> <script type="text/javascript"> $.jgrid.no_legacy_api = true; $.jgrid.useJSON = true; </script> <script src="../../../js/jquery.jqGrid.min.js" type="text/javascript"></script> <script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script> </head> <body> <div> <?php include ("grid.php");?> </div> <br/> <?php tabs(array("grid.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/export/pdfheader/default.php
PHP
gpl2
1,415
<?php require_once '../../../jq-config.php'; // include the jqGrid Class require_once ABSPATH."php/jqGrid.php"; // include the driver class require_once ABSPATH."php/jqGridPdo.php"; require_once(ABSPATH.'/php/tcpdf/config/lang/eng.php'); // Connection to the server $conn = new PDO(DB_DSN,DB_USER,DB_PASSWORD); // Tell the db that we use utf-8 $conn->query("SET NAMES utf8"); // Create the jqGrid instance $grid = new jqGridRender($conn); // Write the SQL Query $grid->SelectCommand = 'SELECT OrderID, OrderDate, CustomerID, ShipName, Freight FROM orders'; // Set output format to json $grid->dataType = 'json'; // Let the grid create the model $grid->setColModel(); // Set the url from where we obtain the data $grid->setUrl('grid.php'); // Set some grid options $grid->setGridOptions(array( "rowNum"=>10, "rowList"=>array(10,20,30), "sortname"=>"OrderID", "caption"=>"PDF export with custom header" )); // Change some property of the field(s) $grid->setColProperty("OrderDate", array( "formatter"=>"date", "formatoptions"=>array("srcformat"=>"Y-m-d H:i:s","newformat"=>"m/d/Y"), "search"=>false ) ); $grid->setColProperty("ShipName", array("width"=>"250")); $grid->setColProperty("Freight", array("label"=>"Test", "align"=>"right")); // Enable navigator $grid->navigator = true; // Enable pdf export on navigator $grid->setNavOptions('navigator', array("pdf"=>true, "add"=>false,"edit"=>false,"del"=>false,"view"=>false, "excel"=>false)); $oper = jqGridUtils::GetParam("oper"); // prevent some executions when not excel export if($oper == "pdf") { $grid->setPdfOptions(array( // enable header information "header"=>true, // set bigger top margin "margin_top"=>27, // set logo image "header_logo"=>"logo.gif", // set logo image width "header_logo_width"=>30, //header title "header_title"=>"jqGrid pdf table", // and a header string to print "header_string"=>"by Trirand Inc - www.trirand.net" )); } // Enjoy $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/export/pdfheader/grid.php
PHP
gpl2
2,051
<?php require_once '../../../tabs.php'; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>jqGrid PHP Demo</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/redmond/jquery-ui-1.8.2.custom.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.jqgrid.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.multiselect.css" /> <style type="text"> html, body { margin: 0; /* Remove body margin/padding */ padding: 0; overflow: hidden; /* Remove scroll bars on browser window */ font-size: 75%; } </style> <script src="../../../js/jquery.js" type="text/javascript"></script> <script src="../../../js/i18n/grid.locale-en.js" type="text/javascript"></script> <script type="text/javascript"> $.jgrid.no_legacy_api = true; $.jgrid.useJSON = true; </script> <script src="../../../js/jquery.jqGrid.min.js" type="text/javascript"></script> <script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script> </head> <body> <div> <?php include ("grid.php");?> </div> <br/> <?php tabs(array("grid.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/export/csv/default.php
PHP
gpl2
1,415
<?php require_once '../../../jq-config.php'; // include the jqGrid Class require_once ABSPATH."php/jqGrid.php"; // include the driver class require_once ABSPATH."php/jqGridPdo.php"; // Connection to the server $conn = new PDO(DB_DSN,DB_USER,DB_PASSWORD); // Tell the db that we use utf-8 $conn->query("SET NAMES utf8"); // Create the jqGrid instance $grid = new jqGridRender($conn); // Write the SQL Query $grid->SelectCommand = 'SELECT OrderID, OrderDate, CustomerID, ShipName, Freight FROM orders'; // Set output format to json $grid->dataType = 'json'; // Let the grid create the model $grid->setColModel(); // Set the url from where we obtain the data $grid->setUrl('grid.php'); // Set some grid options $grid->setGridOptions(array( "rowNum"=>10, "rowList"=>array(10,20,30), "sortname"=>"OrderID", "caption"=>"Simple CSV export" )); // Change some property of the field(s) $grid->setColProperty("OrderDate", array( "formatter"=>"date", "formatoptions"=>array("srcformat"=>"Y-m-d H:i:s","newformat"=>"m/d/Y"), "search"=>false ) ); $grid->setColProperty("ShipName", array("width"=>"250")); $grid->setColProperty("Freight", array("label"=>"Test", "align"=>"right")); // Enable navigator $grid->navigator = true; // Enable csv export $grid->setNavOptions('navigator', array("csv"=>true, "add"=>false,"edit"=>false,"del"=>false,"view"=>false, "excel"=>false)); // Enjoy $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/export/csv/grid.php
PHP
gpl2
1,482
<?php require_once '../../../tabs.php'; ?> <!DOCTYPE html> <html> <head> <style type="text"> html, body { margin: 0; /* Remove body margin/padding */ padding: 0; overflow: hidden; /* Remove scroll bars on browser window */ font-size: 62.5%; } body { font-family: "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif"; } #tags {z-index: 900} </style> <title>jqGrid PHP Demo</title> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/redmond/jquery-ui-1.8.2.custom.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.jqgrid.css" /> <script src="../../../js/jquery.js" type="text/javascript"></script> <script src="../../../js/i18n/grid.locale-en.js" type="text/javascript"></script> <script src="../../../js/jquery.jqGrid.min.js" type="text/javascript"></script> <script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script> <script type="text/javascript"> $.jgrid.no_legacy_api = true; $.jgrid.useJSON = true; </script> </head> <body> <div> <?php include ("grid.php");?> </div> <br/> <?php tabs(array("grid.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/integrations/autocompl_datepicker_full/default.php
PHP
gpl2
1,256
<?php require_once '../../../jq-config.php'; // include the jqGrid Class require_once ABSPATH."php/jqGrid.php"; // include the driver class require_once ABSPATH."php/jqGridPdo.php"; // include the autocomplete class require_once ABSPATH."php/jqAutocomplete.php"; // include the datepicker class require_once ABSPATH."php/jqCalendar.php"; // Connection to the server $conn = new PDO(DB_DSN,DB_USER,DB_PASSWORD); // Tell the db that we use utf-8 $conn->query("SET NAMES utf8"); // Create the jqGrid instance $grid = new jqGridRender($conn); // Write the SQL Query $grid->SelectCommand = 'SELECT OrderID, OrderDate, CustomerID, Freight, ShipName FROM orders'; // set the ouput format to json $grid->dataType = 'json'; $grid->table ="orders"; $grid->setPrimaryKeyId("OrderID"); // Let the grid create the model $grid->setColModel(); // Set the url from where we obtain the data $grid->setUrl('grid.php'); // Set grid caption using the option caption $grid->setGridOptions(array( "caption"=>"This is custom Caption", "rowNum"=>10, "sortname"=>"OrderID", "hoverrows"=>true, "rowList"=>array(10,20,50), )); // Change some property of the field(s) $grid->setColProperty("OrderID", array("label"=>"ID", "width"=>60)); $grid->setColProperty("OrderDate", array( "formatter"=>"date", "formatoptions"=>array("srcformat"=>"Y-m-d H:i:s","newformat"=>"m/d/Y") ) ); $grid->setAutocomplete("ShipName",false,"SELECT DISTINCT ShipName FROM orders WHERE ShipName LIKE ? ORDER BY ShipName",null, true ,true); $grid->setDatepicker('OrderDate', null, true, true); $grid->datearray = array('OrderDate'); // Enjoy $grid->navigator = true; $grid->setNavOptions('navigator', array("excel"=>false)); $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/integrations/autocompl_datepicker_full/grid.php
PHP
gpl2
1,794
<?php require_once '../../../tabs.php'; ?> <!DOCTYPE html> <html> <head> <style type="text"> html, body { margin: 0; /* Remove body margin/padding */ padding: 0; overflow: hidden; /* Remove scroll bars on browser window */ font-size: 62.5%; } body { font-family: "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif"; } #tags {z-index: 900} </style> <title>jqGrid PHP Demo</title> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/redmond/jquery-ui-1.8.2.custom.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.jqgrid.css" /> <script src="../../../js/jquery.js" type="text/javascript"></script> <script src="../../../js/i18n/grid.locale-en.js" type="text/javascript"></script> <script src="../../../js/jquery.jqGrid.min.js" type="text/javascript"></script> <script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script> <script type="text/javascript"> $.jgrid.no_legacy_api = true; $.jgrid.useJSON = true; </script> </head> <body> <div> <?php include ("grid.php");?> </div> <br/> <?php tabs(array("grid.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/integrations/datepicker/default.php
PHP
gpl2
1,256
<?php require_once '../../../jq-config.php'; // include the jqGrid Class require_once ABSPATH."php/jqGrid.php"; // include the driver class require_once ABSPATH."php/jqGridPdo.php"; // include the datepicker class require_once ABSPATH."php/jqCalendar.php"; // Connection to the server $conn = new PDO(DB_DSN,DB_USER,DB_PASSWORD); // Tell the db that we use utf-8 $conn->query("SET NAMES utf8"); // Create the jqGrid instance $grid = new jqGridRender($conn); // Write the SQL Query $grid->SelectCommand = 'SELECT OrderID, OrderDate, CustomerID, Freight, ShipName FROM orders'; // set the ouput format to json $grid->dataType = 'json'; $grid->table ="orders"; $grid->setPrimaryKeyId("OrderID"); // Let the grid create the model $grid->setColModel(); // Set the url from where we obtain the data $grid->setUrl('grid.php'); // Set grid caption using the option caption $grid->setGridOptions(array( "caption"=>"Datepicker method", "rowNum"=>10, "sortname"=>"OrderID", "hoverrows"=>true, "rowList"=>array(10,20,50), )); // Change some property of the field(s) $grid->setColProperty("OrderID", array("label"=>"ID", "width"=>60)); $grid->setColProperty("OrderDate", array( "formatter"=>"date", "formatoptions"=>array("srcformat"=>"Y-m-d H:i:s","newformat"=>"m/d/Y") ) ); // Set the datepicker on OrderDate field. Note that the script automatically // converts the user date set in the jqGrid $grid->setDatepicker('OrderDate', array("buttonIcon"=>true), true, false); $grid->datearray = array('OrderDate'); // Enjoy $grid->navigator = true; $grid->setNavOptions('navigator', array("search"=>false, "excel"=>false)); $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/integrations/datepicker/grid.php
PHP
gpl2
1,729
<?php require_once '../../../tabs.php'; ?> <!DOCTYPE html> <html> <head> <style type="text"> html, body { margin: 0; /* Remove body margin/padding */ padding: 0; overflow: hidden; /* Remove scroll bars on browser window */ font-size: 62.5%; } body { font-family: "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif"; } #tags {z-index: 900} </style> <title>jqGrid PHP Demo</title> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/redmond/jquery-ui-1.8.2.custom.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.jqgrid.css" /> <script src="../../../js/jquery.js" type="text/javascript"></script> <script src="../../../js/i18n/grid.locale-en.js" type="text/javascript"></script> <script src="../../../js/jquery.jqGrid.min.js" type="text/javascript"></script> <script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script> <script type="text/javascript"> $.jgrid.no_legacy_api = true; $.jgrid.useJSON = true; </script> </head> <body> <div> <?php include ("grid.php");?> </div> <br/> <?php tabs(array("grid.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/integrations/autocomplete_search/default.php
PHP
gpl2
1,256
<?php require_once '../../../jq-config.php'; // include the jqGrid Class require_once ABSPATH."php/jqGrid.php"; // include the driver class require_once ABSPATH."php/jqGridPdo.php"; // include the autocomplete class require_once ABSPATH."php/jqAutocomplete.php"; // Connection to the server $conn = new PDO(DB_DSN,DB_USER,DB_PASSWORD); // Tell the db that we use utf-8 $conn->query("SET NAMES utf8"); // Create the jqGrid instance $grid = new jqGridRender($conn); // Write the SQL Query $grid->SelectCommand = 'SELECT OrderID, OrderDate, CustomerID, Freight, ShipName FROM orders'; // set the ouput format to json $grid->dataType = 'json'; $grid->table ="orders"; $grid->setPrimaryKeyId("OrderID"); // Let the grid create the model $grid->setColModel(); // Set the url from where we obtain the data $grid->setUrl('grid.php'); // Set grid caption using the option caption $grid->setGridOptions(array( "caption"=>"Autocomplete in serch dialog", "rowNum"=>10, "sortname"=>"OrderID", "hoverrows"=>true, "rowList"=>array(10,20,50), )); // Change some property of the field(s) $grid->setColProperty("OrderID", array("label"=>"ID", "width"=>60)); $grid->setColProperty("OrderDate", array( "formatter"=>"date", "formatoptions"=>array("srcformat"=>"Y-m-d H:i:s","newformat"=>"m/d/Y") ) ); // set autocomplete. Serch for name and ID, but select a ID // set it only for editing and not on search // Set autocomplete only on serch form. $grid->setAutocomplete("ShipName",false,"SELECT DISTINCT ShipName FROM orders WHERE ShipName LIKE ? ORDER BY ShipName",null, false ,true); $grid->datearray = array('OrderDate'); // Enjoy $grid->navigator = true; $grid->setNavOptions('navigator', array("search"=>true, "excel"=>false, "edit"=>false, "add"=>false, "del"=>false)); $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/integrations/autocomplete_search/grid.php
PHP
gpl2
1,873
<?php require_once '../../../tabs.php'; ?> <!DOCTYPE html> <html> <head> <style type="text"> html, body { margin: 0; /* Remove body margin/padding */ padding: 0; overflow: hidden; /* Remove scroll bars on browser window */ font-size: 62.5%; } body { font-family: "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif"; } #tags {z-index: 900} </style> <title>jqGrid PHP Demo</title> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/redmond/jquery-ui-1.8.2.custom.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.jqgrid.css" /> <script src="../../../js/jquery.js" type="text/javascript"></script> <script src="../../../js/i18n/grid.locale-en.js" type="text/javascript"></script> <script src="../../../js/jquery.jqGrid.min.js" type="text/javascript"></script> <script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script> <script type="text/javascript"> $.jgrid.no_legacy_api = true; $.jgrid.useJSON = true; </script> </head> <body> <div> <?php include ("grid.php");?> </div> <br/> <?php tabs(array("grid.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/integrations/autocomplete/default.php
PHP
gpl2
1,256
<?php require_once '../../../jq-config.php'; // include the jqGrid Class require_once ABSPATH."php/jqGrid.php"; // include the driver class require_once ABSPATH."php/jqGridPdo.php"; // include the autocomplete class require_once ABSPATH."php/jqAutocomplete.php"; // Connection to the server $conn = new PDO(DB_DSN,DB_USER,DB_PASSWORD); // Tell the db that we use utf-8 $conn->query("SET NAMES utf8"); // Create the jqGrid instance $grid = new jqGridRender($conn); // Write the SQL Query $grid->SelectCommand = 'SELECT OrderID, OrderDate, CustomerID, Freight, ShipName FROM orders'; // set the ouput format to json $grid->dataType = 'json'; $grid->table ="orders"; $grid->setPrimaryKeyId("OrderID"); // Let the grid create the model $grid->setColModel(); // Set the url from where we obtain the data $grid->setUrl('grid.php'); // Set grid caption using the option caption $grid->setGridOptions(array( "caption"=>"Simple Autocomplete", "rowNum"=>10, "sortname"=>"OrderID", "hoverrows"=>true, "rowList"=>array(10,20,50), )); // Change some property of the field(s) $grid->setColProperty("OrderID", array("label"=>"ID", "width"=>60, "editoptions"=>array("editable"=>false))); $grid->setColProperty("OrderDate", array( "formatter"=>"date", "formatoptions"=>array("srcformat"=>"Y-m-d H:i:s","newformat"=>"m/d/Y") ) ); // set autocomplete. Serch for name and ID, but select a ID // set it only for editing and not on serch $grid->setAutocomplete("ShipName",false,"SELECT DISTINCT ShipName FROM orders WHERE ShipName LIKE ? ORDER BY ShipName",null,true,false); $grid->datearray = array('OrderDate'); // Enjoy $grid->navigator = true; $grid->setNavOptions('navigator', array("search"=>false, "excel"=>false, "add"=>false, "del"=>false)); $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/integrations/autocomplete/grid.php
PHP
gpl2
1,850
<?php require_once '../../../tabs.php'; ?> <!DOCTYPE html> <html> <head> <style type="text"> html, body { margin: 0; /* Remove body margin/padding */ padding: 0; overflow: hidden; /* Remove scroll bars on browser window */ font-size: 62.5%; } body { font-family: "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif"; } #tags {z-index: 900} </style> <title>jqGrid PHP Demo</title> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/redmond/jquery-ui-1.8.2.custom.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.jqgrid.css" /> <script src="../../../js/jquery.js" type="text/javascript"></script> <script src="../../../js/i18n/grid.locale-en.js" type="text/javascript"></script> <script src="../../../js/jquery.jqGrid.min.js" type="text/javascript"></script> <script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script> <script type="text/javascript"> $.jgrid.no_legacy_api = true; $.jgrid.useJSON = true; </script> </head> <body> <div> <?php include ("grid.php");?> </div> <br/> <?php tabs(array("grid.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/integrations/autocomplete_toolbar/default.php
PHP
gpl2
1,256
<?php require_once '../../../jq-config.php'; // include the jqGrid Class require_once ABSPATH."php/jqGrid.php"; // include the driver class require_once ABSPATH."php/jqGridPdo.php"; // include the autocomplete class require_once ABSPATH."php/jqAutocomplete.php"; // Connection to the server $conn = new PDO(DB_DSN,DB_USER,DB_PASSWORD); // Tell the db that we use utf-8 $conn->query("SET NAMES utf8"); // Create the jqGrid instance $grid = new jqGridRender($conn); // Write the SQL Query $grid->SelectCommand = 'SELECT OrderID, OrderDate, CustomerID, Freight, ShipName FROM orders'; // set the ouput format to json $grid->dataType = 'json'; $grid->table ="orders"; $grid->setPrimaryKeyId("OrderID"); // Let the grid create the model $grid->setColModel(); // Set the url from where we obtain the data $grid->setUrl('grid.php'); // Set grid caption using the option caption $grid->setGridOptions(array( "caption"=>"Autocomplete in tollbar search", "rowNum"=>10, "sortname"=>"OrderID", "hoverrows"=>true, "rowList"=>array(10,20,50), )); // Change some property of the field(s) $grid->setColProperty("OrderID", array("label"=>"ID", "width"=>60)); $grid->setColProperty("OrderDate", array( "formatter"=>"date", "formatoptions"=>array("srcformat"=>"Y-m-d H:i:s","newformat"=>"m/d/Y") ) ); // set autocomplete. Serch for name and ID, but select a ID // set it only for editing and not on serch $grid->setAutocomplete("ShipName",false,"SELECT DISTINCT ShipName FROM orders WHERE ShipName LIKE ? ORDER BY ShipName",null,false,true); $grid->datearray = array('OrderDate'); // Enjoy $grid->navigator = true; $grid->toolbarfilter = true; $grid->setNavOptions('navigator', array("search"=>false, "excel"=>false,"add"=>false, "edit"=>false, "del"=>false)); $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/integrations/autocomplete_toolbar/grid.php
PHP
gpl2
1,863
<?php require_once '../../../tabs.php'; ?> <!DOCTYPE html> <html> <head> <style type="text"> html, body { margin: 0; /* Remove body margin/padding */ padding: 0; overflow: hidden; /* Remove scroll bars on browser window */ font-size: 62.5%; } body { font-family: "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif"; } #tags {z-index: 900} </style> <title>jqGrid PHP Demo</title> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/redmond/jquery-ui-1.8.2.custom.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.jqgrid.css" /> <script src="../../../js/jquery.js" type="text/javascript"></script> <script src="../../../js/i18n/grid.locale-en.js" type="text/javascript"></script> <script src="../../../js/jquery.jqGrid.min.js" type="text/javascript"></script> <script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script> <script type="text/javascript"> $.jgrid.no_legacy_api = true; $.jgrid.useJSON = true; </script> </head> <body> <div> <?php include ("grid.php");?> </div> <br/> <?php tabs(array("grid.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/integrations/autocompl_cache/default.php
PHP
gpl2
1,256
<?php require_once '../../../jq-config.php'; // include the jqGrid Class require_once ABSPATH."php/jqGrid.php"; // include the driver class require_once ABSPATH."php/jqGridPdo.php"; // include the autocomplete class require_once ABSPATH."php/jqAutocomplete.php"; // Connection to the server $conn = new PDO(DB_DSN,DB_USER,DB_PASSWORD); // Tell the db that we use utf-8 $conn->query("SET NAMES utf8"); // Create the jqGrid instance $grid = new jqGridRender($conn); // Write the SQL Query $grid->SelectCommand = 'SELECT OrderID, OrderDate, CustomerID, Freight, ShipName FROM orders'; // set the ouput format to json $grid->dataType = 'json'; $grid->table ="orders"; $grid->setPrimaryKeyId("OrderID"); // Let the grid create the model $grid->setColModel(); // Set the url from where we obtain the data $grid->setUrl('grid.php'); // Set grid caption using the option caption $grid->setGridOptions(array( "caption"=>"Autocomplete client side caching", "rowNum"=>10, "sortname"=>"OrderID", "hoverrows"=>true, "rowList"=>array(10,20,50), )); // Change some property of the field(s) $grid->setColProperty("OrderID", array("label"=>"ID", "width"=>60)); $grid->setColProperty("OrderDate", array( "formatter"=>"date", "formatoptions"=>array("srcformat"=>"Y-m-d H:i:s","newformat"=>"m/d/Y") ) ); // set autocomplete. Serch for name and ID, but select a ID // set it only for editing and not on search. Also set the cache option $grid->setAutocomplete("ShipName",false,"SELECT DISTINCT ShipName FROM orders WHERE ShipName LIKE ? ORDER BY ShipName",array("cache"=>true),true,false); $grid->datearray = array('OrderDate'); // Enjoy $grid->navigator = true; $grid->setNavOptions('navigator', array("search"=>false, "excel"=>false, "add"=>false, "del"=>false)); $grid->renderGrid('#grid','#pager',true, null, null, true,true); ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/integrations/autocompl_cache/grid.php
PHP
gpl2
1,850
<?php require_once '../../../tabs.php'; ?> <!DOCTYPE html> <html> <head> <style type="text"> html, body { margin: 0; /* Remove body margin/padding */ padding: 0; overflow: hidden; /* Remove scroll bars on browser window */ font-size: 62.5%; } body { font-family: "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif"; } #tags {z-index: 900} </style> <title>jqGrid PHP Demo</title> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/redmond/jquery-ui-1.8.2.custom.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.jqgrid.css" /> <script src="../../../js/jquery.js" type="text/javascript"></script> <script src="../../../js/i18n/grid.locale-en.js" type="text/javascript"></script> <script src="../../../js/jquery.jqGrid.min.js" type="text/javascript"></script> <script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script> <script type="text/javascript"> $.jgrid.no_legacy_api = true; $.jgrid.useJSON = true; </script> </head> <body> <div> <?php include ("grid.php");?> </div> <br/> <?php tabs(array("grid.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/integrations/autocompl_sethidden/default.php
PHP
gpl2
1,256
<?php require_once '../../../jq-config.php'; // include the jqGrid Class require_once ABSPATH."php/jqGrid.php"; // include the driver class require_once ABSPATH."php/jqGridPdo.php"; // include the autocomplete class require_once ABSPATH."php/jqAutocomplete.php"; // Connection to the server $conn = new PDO(DB_DSN,DB_USER,DB_PASSWORD); // Tell the db that we use utf-8 $conn->query("SET NAMES utf8"); // Create the jqGrid instance $grid = new jqGridRender($conn); // Write the SQL Query $grid->SelectCommand = 'SELECT a.OrderID, a.OrderDate, a.CustomerID, b.CompanyName, a.Freight, a.ShipName FROM orders a, customers b WHERE a.CustomerID=b.CustomerId'; // set the ouput format to json $grid->dataType = 'json'; $grid->table ="orders"; $grid->setPrimaryKeyId("OrderID"); // Let the grid create the model $grid->setColModel(); // Set the url from where we obtain the data $grid->setUrl('grid.php'); // Set grid caption using the option caption $grid->setGridOptions(array( "caption"=>"Advanced Autocomplete", "rowNum"=>10, "sortname"=>"OrderID", "hoverrows"=>true, "rowList"=>array(10,20,50), )); // Change some property of the field(s) $grid->setColProperty("OrderID", array("label"=>"ID", "width"=>60)); $grid->setColProperty("CustomerID", array("editoptions"=>array("readonly"=>"readonly"))); $grid->setColProperty("OrderDate", array( "formatter"=>"date", "formatoptions"=>array("srcformat"=>"Y-m-d H:i:s","newformat"=>"m/d/Y") ) ); // set autocomplete. Serch for name and ID, but select a ID // set it only for editing and not on serch $grid->setAutocomplete("CompanyName","#CustomerID","SELECT CompanyName, CompanyName,CustomerID FROM customers WHERE CompanyName LIKE ? ORDER BY CompanyName",null,true,false); $grid->datearray = array('OrderDate'); // Enjoy $grid->navigator = true; $grid->setNavOptions('navigator', array("search"=>false, "excel"=>false)); $grid->setNavOptions('edit', array("height"=>'auto',"dataheight"=>'auto')); $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/integrations/autocompl_sethidden/grid.php
PHP
gpl2
2,059
<?php require_once '../../../tabs.php'; ?> <!DOCTYPE html> <html> <head> <style type="text"> html, body { margin: 0; /* Remove body margin/padding */ padding: 0; overflow: hidden; /* Remove scroll bars on browser window */ font-size: 62.5%; } body { font-family: "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif"; } #tags {z-index: 900} </style> <title>jqGrid PHP Demo</title> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/redmond/jquery-ui-1.8.2.custom.css" /> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.jqgrid.css" /> <script src="../../../js/jquery.js" type="text/javascript"></script> <script src="../../../js/i18n/grid.locale-en.js" type="text/javascript"></script> <script src="../../../js/jquery.jqGrid.min.js" type="text/javascript"></script> <script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script> <script type="text/javascript"> $.jgrid.no_legacy_api = true; $.jgrid.useJSON = true; </script> </head> <body> <div> <?php include ("grid.php");?> </div> <br/> <?php tabs(array("grid.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/integrations/auto_editing_search/default.php
PHP
gpl2
1,256
<?php require_once '../../../jq-config.php'; // include the jqGrid Class require_once ABSPATH."php/jqGrid.php"; // include the driver class require_once ABSPATH."php/jqGridPdo.php"; // include the autocomplete class require_once ABSPATH."php/jqAutocomplete.php"; // Connection to the server $conn = new PDO(DB_DSN,DB_USER,DB_PASSWORD); // Tell the db that we use utf-8 $conn->query("SET NAMES utf8"); // Create the jqGrid instance $grid = new jqGridRender($conn); // Write the SQL Query $grid->SelectCommand = 'SELECT OrderID, OrderDate, CustomerID, Freight, ShipName FROM orders'; // set the ouput format to json $grid->dataType = 'json'; $grid->table ="orders"; $grid->setPrimaryKeyId("OrderID"); // Let the grid create the model $grid->setColModel(); // Set the url from where we obtain the data $grid->setUrl('grid.php'); // Set grid caption using the option caption $grid->setGridOptions(array( "caption"=>"Autocomplete in edit and search dialogs", "rowNum"=>10, "sortname"=>"OrderID", "hoverrows"=>true, "rowList"=>array(10,20,50), )); // Change some property of the field(s) $grid->setColProperty("OrderID", array("label"=>"ID", "width"=>60)); $grid->setColProperty("OrderDate", array( "formatter"=>"date", "formatoptions"=>array("srcformat"=>"Y-m-d H:i:s","newformat"=>"m/d/Y") ) ); // set autocomplete. Serch for name and ID, but select a ID // set it only for editing and not on serch $grid->setAutocomplete("ShipName",false,"SELECT DISTINCT ShipName FROM orders WHERE ShipName LIKE ? ORDER BY ShipName",null,true,true); $grid->datearray = array('OrderDate'); // Enjoy $grid->navigator = true; $grid->setNavOptions('navigator', array("search"=>true, "excel"=>false)); $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/integrations/auto_editing_search/grid.php
PHP
gpl2
1,799
<?php require_once '../../../tabs2.php'; ?> <!DOCTYPE html> <html lang="en" class="no-js"> <head> <title>jqForm PHP Demo</title> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/redmond/jquery-ui-1.8.2.custom.css" /> <style type="text/css"> html, body { margin: 0; /* Remove body margin/padding */ padding: 0; /*overflow: hidden;*/ /* Remove scroll bars on browser window */ font-size: 90%; } body { font-family: "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif"; } .ui-input {padding :4px; margin: 1px;} .ui-select {padding : 3px;} .ui-textarea {padding: 3px;} #notsupported { border: 0px none;} </style> <script src="../../../js/jquery.js" type="text/javascript"></script> <script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script> <script src="../../../js/jquery.form.js" type="text/javascript"></script> <script src="../../../js/modernizr-2.0.6.js" type="text/javascript"></script> <script type="text/javascript"> jQuery(document).ready(function(){ if(Modernizr.inputtypes.number) { jQuery("#supported").append("<div>Your browser support input type: number!</div>"); } else { jQuery("#notsupported").append("<div>Your browser does not support input type: number!</div>").addClass('ui-state-error'); } }); </script> </head> <body> <div style="margin-left:20px;margin-right: 20px;"> <?php include ("selectdb.php");?> <div style="text-align: center;margin-top:10px;">This Form is created with HTML5 PHP jqForm builder</div> </div> <br/> <div id="supported"></div> <div id="notsupported"></div> <?php tabs(array("selectdb.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/jqform/selectdb/default.php
PHP
gpl2
1,793
<?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ $SERVER_HOST = ""; // the host name $SELF_PATH = ""; // the web path to the project without http $CODE_PATH = "../../../php/"; // the physical path to the php files include '../../../jq-config.php' ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/jqform/selectdb/jqformconfig.php
PHP
gpl2
319
<?php // Include class include_once 'jqformconfig.php'; include_once $CODE_PATH.'jqUtils.php'; include_once $CODE_PATH.'jqForm.php'; // Create instance $newForm = new jqForm('newForm',array('method' => 'post', 'id' => 'newForm')); // Demo Mode creating connection include_once $CODE_PATH.'jqGridPdo.php'; $conn = new PDO(DB_DSN, DB_USER, DB_PASSWORD); $newForm->setConnection( $conn ); // Set url $newForm->setUrl($SERVER_HOST.$SELF_PATH.'selectdb.php'); // Set Form header $formhead='Shipping Details'; $newForm->setFormHeader($formhead,'ui-icon-mail-closed'); // Set parameters $jqformparams = array(); // Set SQL Command, table, keys $newForm->table = 'orders'; $newForm->setPrimaryKeys('OrderID'); $newForm->serialKey = true; // Set Form layout $newForm->setColumnLayout('twocolumn'); $newForm->setTableStyles('width:580px;','',''); // Add elements $newForm->addElement('OrderID','hidden', array('label' => 'OrderID', 'id' => 'newForm_OrderID')); $newForm->addElement('ShipName','text', array('label' => 'Name', 'maxlength' => '40', 'style' => 'width:98%;', 'id' => 'newForm_ShipName')); $newForm->addElement('ShipAddress','text', array('label' => 'Address', 'maxlength' => '60', 'style' => 'width:98%;', 'id' => 'newForm_ShipAddress')); $newForm->addElement('ShipCity','text', array('label' => 'City', 'maxlength' => '15', 'size' => '20', 'id' => 'newForm_ShipCity')); $newForm->addElement('ShipPostalCode','text', array('label' => 'PostalCode', 'maxlength' => '10', 'size' => '20', 'id' => 'newForm_ShipPostalCode')); $newForm->addElement('ShipCountry','select', array('label' => 'Country', 'datasql' => 'SELECT ShipCountry FROM orders WHERE ShipCountry <> "" GROUP BY ShipCountry', 'id' => 'newForm_ShipCountry')); $newForm->addElement('Freight','number', array('label' => 'Freight', 'id' => 'newForm_Freight')); $elem_8[]=$newForm->createElement('newSubmit','submit', array('value' => 'Submit')); $newForm->addGroup("newGroup",$elem_8, array('style' => 'text-align:right;', 'id' => 'newForm_newGroup')); // Add events // Add ajax submit events $newForm->setAjaxOptions( array('iframe' => false, 'forceSync' =>false) ); // Demo mode - no input $newForm->demo = true; // Render the form echo $newForm->renderForm($jqformparams); ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/jqform/selectdb/selectdb.php
PHP
gpl2
2,251
<?php require_once '../../../tabs2.php'; ?> <!DOCTYPE html> <html lang="en" class="no-js"> <head> <title>jqForm PHP Demo</title> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/redmond/jquery-ui-1.8.2.custom.css" /> <style type="text/css"> html, body { margin: 0; /* Remove body margin/padding */ padding: 0; /*overflow: hidden;*/ /* Remove scroll bars on browser window */ font-size: 90%; } body { font-family: "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif"; } .ui-input {padding :4px; margin: 1px;} .ui-select {padding : 3px;} .ui-textarea {padding: 3px;} #notsupported { border: 0px none;} </style> <script src="../../../js/jquery.js" type="text/javascript"></script> <script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script> <script src="../../../js/jquery.form.js" type="text/javascript"></script> <script src="../../../js/modernizr-2.0.6.js" type="text/javascript"></script> <script type="text/javascript"> jQuery(document).ready(function(){ if(Modernizr.inputtypes.number) { jQuery("#supported").append("<div>Your browser support input type: number!</div>"); } else { jQuery("#notsupported").append("<div>Your browser does not support input type: number!</div>").addClass('ui-state-error'); } }); </script> </head> <body> <div style="margin-left:20px;margin-right: 20px;"> <?php include ("sqlsuccess.php");?> <div style="text-align: center;margin-top:10px;">This Form is created with HTML5 PHP jqForm builder</div> </div> <br/> <div id="supported"></div> <div id="notsupported"></div> <?php tabs(array("sqlsuccess.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/jqform/sqlsuccess/default.php
PHP
gpl2
1,797
<?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ $SERVER_HOST = ""; // the host name $SELF_PATH = ""; // the web path to the project without http $CODE_PATH = "../../../php/"; // the physical path to the php files include '../../../jq-config.php' ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/jqform/sqlsuccess/jqformconfig.php
PHP
gpl2
319
<?php // Include class include_once 'jqformconfig.php'; include_once $CODE_PATH.'jqUtils.php'; include_once $CODE_PATH.'jqForm.php'; // Create instance $newForm = new jqForm('newForm',array('method' => 'post', 'id' => 'newForm')); // Demo Mode creating connection include_once $CODE_PATH.'jqGridPdo.php'; $conn = new PDO(DB_DSN, DB_USER, DB_PASSWORD); $newForm->setConnection( $conn ); // Set url $newForm->setUrl($SERVER_HOST.$SELF_PATH.'sqlsuccess.php'); // Set Form header $formhead='Edit Ship Details'; $newForm->setFormHeader($formhead,'ui-icon-pencil'); // Set parameters $Order = jqGridUtils::GetParam('Order','10254'); $Order = is_numeric($Order) ? (int)$Order : 0; $jqformparams = array($Order); // Set SQL Command, table, keys $newForm->SelectCommand = 'SELECT OrderID, ShipName, ShipAddress, ShipCity, ShipPostalCode, ShipCountry, Freight FROM orders WHERE OrderID = ?'; $newForm->table = 'orders'; $newForm->setPrimaryKeys('OrderID'); $newForm->serialKey = true; // Set Form layout $newForm->setColumnLayout('twocolumn'); $newForm->setTableStyles('width:580px;','',''); // Add elements $newForm->addElement('OrderID','hidden', array('label' => 'OrderID', 'id' => 'newForm_OrderID')); $newForm->addElement('ShipName','text', array('label' => 'ShipName', 'maxlength' => '40', 'style' => 'width:98%;', 'id' => 'newForm_ShipName')); $newForm->addElement('ShipAddress','text', array('label' => 'ShipAddress', 'maxlength' => '60', 'style' => 'width:98%;', 'id' => 'newForm_ShipAddress')); $newForm->addElement('ShipCity','text', array('label' => 'ShipCity', 'maxlength' => '15', 'size' => '20', 'id' => 'newForm_ShipCity')); $newForm->addElement('ShipPostalCode','text', array('label' => 'ShipPostalCode', 'maxlength' => '10', 'size' => '20', 'id' => 'newForm_ShipPostalCode')); $newForm->addElement('ShipCountry','select', array('label' => 'ShipCountry', 'datasql' => 'SELECT ShipCountry FROM orders WHERE ShipCountry <> "" GROUP BY ShipCountry', 'id' => 'newForm_ShipCountry')); $newForm->addElement('Freight','number', array('label' => 'Freight', 'id' => 'newForm_Freight')); $elem_8[]=$newForm->createElement('newSubmit','submit', array('value' => 'Submit')); $newForm->addGroup("newGroup",$elem_8, array('style' => 'text-align:right;', 'id' => 'newForm_newGroup')); // Add events // Add ajax submit events $success = <<< SU function( response, status, xhr) { if( response.indexOf('success')!=-1) { alert('Record Updated'); } else { alert('Operation Failed'); } } SU; $newForm->setAjaxOptions( array('dataType'=>null, 'resetForm' =>null, 'clearForm' => null, 'success' =>'js:'.$success, 'iframe' => false, 'forceSync' =>false) ); // Demo mode - no input $newForm->demo = true; // Render the form echo $newForm->renderForm($jqformparams); ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/jqform/sqlsuccess/sqlsuccess.php
PHP
gpl2
2,768
<?php require_once '../../../tabs2.php'; ?> <!DOCTYPE html> <html lang="en" class="no-js"> <head> <title>jqForm PHP Demo</title> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/redmond/jquery-ui-1.8.2.custom.css" /> <style type="text/css"> html, body { margin: 0; /* Remove body margin/padding */ padding: 0; /*overflow: hidden;*/ /* Remove scroll bars on browser window */ font-size: 90%; } body { font-family: "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif"; } .ui-input {padding :4px; margin: 1px;} .ui-select {padding : 3px;} .ui-textarea {padding: 3px;} #notsupported { border: 0px none;} </style> <script src="../../../js/jquery.js" type="text/javascript"></script> <script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script> <script src="../../../js/jquery.form.js" type="text/javascript"></script> <script src="../../../js/modernizr-2.0.6.js" type="text/javascript"></script> <script type="text/javascript"> jQuery(document).ready(function(){ if(Modernizr.input.placeholder) { jQuery("#supported").append("<div>Your browser support 'placeholder' input property!</div>"); } else { jQuery("#notsupported").append("<div>Your browser does not support 'placeholder' input property!</div>").addClass('ui-state-error'); } if(Modernizr.inputtypes.number) { jQuery("#supported").append("<div>Your browser support input type: number!</div>"); } else { jQuery("#notsupported").append("<div>Your browser does not support input type: number!</div>").addClass('ui-state-error'); } }); </script> </head> <body> <div style="margin-left:20px;margin-right: 20px;"> <?php include ("html5placeholder.php");?> <div style="text-align: center;margin-top:10px;">This Form is created with HTML5 PHP jqForm builder</div> </div> <br/> <div id="supported"></div> <div id="notsupported"></div> <?php tabs(array("html5placeholder.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/jqform/html5placeholder/default.php
PHP
gpl2
2,089
<?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ $SERVER_HOST = ""; // the host name $SELF_PATH = ""; // the web path to the project without http $CODE_PATH = "../../../php/"; // the physical path to the php files include '../../../jq-config.php' ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/jqform/html5placeholder/jqformconfig.php
PHP
gpl2
319
<?php // Include class include_once 'jqformconfig.php'; include_once $CODE_PATH.'jqUtils.php'; include_once $CODE_PATH.'jqForm.php'; // Create instance $newForm = new jqForm('newForm',array('method' => 'post', 'id' => 'newForm')); // Demo Mode creating connection include_once $CODE_PATH.'jqGridPdo.php'; $conn = new PDO(DB_DSN, DB_USER, DB_PASSWORD); $newForm->setConnection( $conn ); // Set url $newForm->setUrl($SERVER_HOST.$SELF_PATH.'html5placeholder.php'); // Set Form header $formhead='Shipping Details'; $newForm->setFormHeader($formhead,'ui-icon-mail-closed'); // Set parameters $jqformparams = array(); // Set SQL Command, table, keys $newForm->table = 'orders'; $newForm->setPrimaryKeys('OrderID'); $newForm->serialKey = true; // Set Form layout $newForm->setColumnLayout('twocolumn'); $newForm->setTableStyles('width:580px;','',''); // Add elements $newForm->addElement('OrderID','hidden', array('label' => 'OrderID', 'id' => 'newForm_OrderID')); $newForm->addElement('ShipName','text', array('label' => 'Name', 'maxlength' => '40', 'placeholder' => 'Enter Ship name', 'style' => 'width:98%;', 'id' => 'newForm_ShipName')); $newForm->addElement('ShipAddress','text', array('label' => 'Address', 'maxlength' => '60', 'size' => '40', 'placeholder' => 'Enter Ship Address', 'style' => 'width:98%;', 'id' => 'newForm_ShipAddress')); $newForm->addElement('ShipCity','text', array('label' => 'City', 'maxlength' => '15', 'size' => '20', 'placeholder' => 'Enter Ship City', 'id' => 'newForm_ShipCity')); $newForm->addElement('ShipPostalCode','text', array('label' => 'PostalCode', 'maxlength' => '10', 'size' => '20', 'id' => 'newForm_ShipPostalCode')); $newForm->addElement('ShipCountry','text', array('label' => 'Country', 'maxlength' => '15', 'size' => '20', 'id' => 'newForm_ShipCountry')); $newForm->addElement('Freight','number', array('label' => 'Freight', 'id' => 'newForm_Freight')); $elem_8[]=$newForm->createElement('newSubmit','submit', array('value' => 'Submit')); $newForm->addGroup("newGroup",$elem_8, array('style' => 'text-align:right;', 'id' => 'newForm_newGroup')); // Add events // Add ajax submit events $newForm->setAjaxOptions( array('iframe' => false, 'forceSync' =>false) ); // Demo mode - no input $newForm->demo = true; // Render the form echo $newForm->renderForm($jqformparams); ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/jqform/html5placeholder/html5placeholder.php
PHP
gpl2
2,328
<?php require_once '../../../tabs2.php'; ?> <!DOCTYPE html> <html lang="en" class="no-js"> <head> <title>jqForm PHP Demo</title> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/redmond/jquery-ui-1.8.2.custom.css" /> <style type="text/css"> html, body { margin: 0; /* Remove body margin/padding */ padding: 0; /*overflow: hidden;*/ /* Remove scroll bars on browser window */ font-size: 90%; } body { font-family: "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif"; } .ui-input {padding :4px; margin: 1px;} .ui-select {padding : 3px;} .ui-textarea {padding: 3px;} #notsupported { border: 0px none;} </style> <script src="../../../js/jquery.js" type="text/javascript"></script> <script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script> <script src="../../../js/jquery.form.js" type="text/javascript"></script> <script src="../../../js/modernizr-2.0.6.js" type="text/javascript"></script> <script type="text/javascript"> jQuery(document).ready(function(){ if(Modernizr.inputtypes.number) { jQuery("#supported").append("<div>Your browser support input type: number!</div>"); } else { jQuery("#notsupported").append("<div>Your browser does not support input type: number!</div>").addClass('ui-state-error'); } $("input:submit").css('font-size','1.0em'); }); </script> </head> <body> <div style="margin-left:20px;margin-right: 20px;"> <?php include ("defaultdef.php");?> <div style="text-align: center;margin-top:10px;">This Form is created with HTML5 PHP jqForm builder</div> </div> <br/> <div id="supported"></div> <div id="notsupported"></div> <?php tabs(array("defaultdef.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/jqform/defaultdef/default.php
PHP
gpl2
1,845
<?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ $SERVER_HOST = ""; // the host name $SELF_PATH = ""; // the web path to the project without http $CODE_PATH = "../../../php/"; // the physical path to the php files include '../../../jq-config.php' ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/jqform/defaultdef/jqformconfig.php
PHP
gpl2
319
<?php // Include class include_once 'jqformconfig.php'; include_once $CODE_PATH.'jqUtils.php'; include_once $CODE_PATH.'jqForm.php'; // Create instance $newForm = new jqForm('newForm',array('method' => 'post', 'id' => 'newForm')); // Demo Mode creating connection include_once $CODE_PATH.'jqGridPdo.php'; $conn = new PDO(DB_DSN, DB_USER, DB_PASSWORD); $newForm->setConnection( $conn ); // Set url $newForm->setUrl($SERVER_HOST.$SELF_PATH.'defaultdef.php'); // Set parameters $jqformparams = array(); // Set SQL Command, table, keys $newForm->table = 'orders'; $newForm->setPrimaryKeys('OrderID'); $newForm->serialKey = true; // Set Form layout $newForm->setColumnLayout('twocolumn'); // Set the style for the table $newForm->setTableStyles('width:580px;'); // Add elements $newForm->addElement('OrderID','hidden', array('label' => 'OrderID', 'id' => 'newForm_OrderID')); $newForm->addElement('ShipName','text', array('label' => 'ShipName', 'maxlength' => '40', 'style'=>'width:100%', 'id' => 'newForm_ShipName')); $newForm->addElement('ShipAddress','text', array('label' => 'ShipAddress', 'maxlength' => '60', 'style'=>'width:100%', 'id' => 'newForm_ShipAddress')); $newForm->addElement('ShipCity','text', array('label' => 'ShipCity', 'maxlength' => '15', 'size' => '20', 'id' => 'newForm_ShipCity')); $newForm->addElement('ShipPostalCode','text', array('label' => 'ShipPostalCode', 'maxlength' => '10', 'size' => '20', 'id' => 'newForm_ShipPostalCode')); $newForm->addElement('ShipCountry','text', array('label' => 'ShipCountry', 'maxlength' => '15', 'size' => '20', 'id' => 'newForm_ShipCountry')); $newForm->addElement('Freight','number', array('label' => 'Freight', 'id' => 'newForm_Freight')); $elem_8[]=$newForm->createElement('newSubmit','submit', array('value' => 'Submit')); $newForm->addGroup("newGroup",$elem_8, array('style' => 'text-align:right;', 'id' => 'newForm_newGroup')); // Add events // Add ajax submit events $newForm->setAjaxOptions( array('dataType'=>null, 'resetForm' =>null, 'clearForm' => null, 'iframe' => false, 'forceSync' =>false) ); // Demo mode - no input $newForm->demo = true; // Render the form echo $newForm->renderForm($jqformparams); ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/jqform/defaultdef/defaultdef.php
PHP
gpl2
2,188
<?php require_once '../../../tabs.php'; ?> <!DOCTYPE html> <html lang="en" class="no-js"> <head> <title>jqForm PHP Demo</title> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/redmond/jquery-ui-1.8.2.custom.css" /> <style type="text/css"> html, body { margin: 0; /* Remove body margin/padding */ padding: 0; /*overflow: hidden;*/ /* Remove scroll bars on browser window */ font-size: 90%; } body { font-family: "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif"; } .ui-input {padding :4px; margin: 1px;} .ui-select {padding : 3px;} .ui-textarea {padding: 3px;} #notsupported { border: 0px none;} </style> <script src="../../../js/jquery.js" type="text/javascript"></script> <script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script> <script src="../../../js/jquery.form.js" type="text/javascript"></script> <script src="../../../js/modernizr-2.0.6.js" type="text/javascript"></script> <script type="text/javascript"> jQuery(document).ready(function(){ if(Modernizr.input.required) { jQuery("#supported").append("<div>Your browser support 'required' input property!</div>"); } else { jQuery("#notsupported").append("<div>Your browser does not support 'required' input property!</div>").addClass('ui-state-error'); } if(Modernizr.inputtypes.number) { jQuery("#supported").append("<div>Your browser support input type: number!</div>"); } else { jQuery("#notsupported").append("<div>Your browser does not support input type: number!</div>").addClass('ui-state-error'); } }); </script> </head> <body> <div style="margin-left:20px;margin-right: 20px;"> <?php include ("defaultfooter.php");?> <div style="text-align: center;margin-top:10px;">This Form is created with HTML5 PHP jqForm builder</div> </div> <br/> <div id="supported"></div> <div id="notsupported"></div> <?php tabs(array("defaultfooter.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/jqform/defaultfooter/default.php
PHP
gpl2
2,087
<?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ $SERVER_HOST = ""; // the host name $SELF_PATH = ""; // the web path to the project without http $CODE_PATH = "../../../php/"; // the physical path to the php files include '../../../jq-config.php' ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/jqform/defaultfooter/jqformconfig.php
PHP
gpl2
319
<?php // Include class include_once 'jqformconfig.php'; include_once $CODE_PATH.'jqUtils.php'; include_once $CODE_PATH.'jqForm.php'; // Create instance $newForm = new jqForm('newForm',array('method' => 'post', 'id' => 'newForm')); // Demo Mode creating connection include_once $CODE_PATH.'jqGridPdo.php'; $conn = new PDO(DB_DSN, DB_USER, DB_PASSWORD); $newForm->setConnection( $conn ); // Set url $newForm->setUrl($SERVER_HOST.$SELF_PATH.'defaultfooter.php'); // Set Form header $formhead='Shipping Details'; $newForm->setFormHeader($formhead,'ui-icon-mail-closed'); // Set Form Footer $newForm->setFormFooter("Fields marked with (*) are requiered"); // Set parameters $jqformparams = array(); // Set SQL Command, table, keys $newForm->table = 'orders'; $newForm->setPrimaryKeys('OrderID'); $newForm->serialKey = true; // Set Form layout $newForm->setColumnLayout('twocolumn'); $newForm->setTableStyles('width:580px;','',''); // Add elements $newForm->addElement('OrderID','hidden', array('label' => 'OrderID', 'id' => 'newForm_OrderID')); $newForm->addElement('ShipName','text', array('label' => 'Name *', 'maxlength' => '40', 'required' => '1', 'style' => 'width:98%;', 'id' => 'newForm_ShipName')); $newForm->addElement('ShipAddress','text', array('label' => 'Address', 'maxlength' => '60', 'size' => '40', 'style' => 'width:98%;', 'id' => 'newForm_ShipAddress')); $newForm->addElement('ShipCity','text', array('label' => 'City', 'maxlength' => '15', 'size' => '20', 'id' => 'newForm_ShipCity')); $newForm->addElement('ShipPostalCode','text', array('label' => 'PostalCode', 'maxlength' => '10', 'size' => '20', 'id' => 'newForm_ShipPostalCode')); $newForm->addElement('ShipCountry','text', array('label' => 'Country', 'maxlength' => '15', 'size' => '20', 'id' => 'newForm_ShipCountry')); $newForm->addElement('Freight','number', array('label' => 'Freight', 'id' => 'newForm_Freight')); $elem_8[]=$newForm->createElement('newSubmit','submit', array('value' => 'Submit')); $newForm->addGroup("newGroup",$elem_8, array('style' => 'text-align:right;', 'id' => 'newForm_newGroup')); // Add events // Add ajax submit events $newForm->setAjaxOptions( array('iframe' => false, 'forceSync' =>false) ); // Demo mode - no input $newForm->demo = true; // Render the form echo $newForm->renderForm($jqformparams); ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/jqform/defaultfooter/defaultfooter.php
PHP
gpl2
2,320
<?php // Include class include_once 'jqformconfig.php'; include_once $CODE_PATH.'jqUtils.php'; include_once $CODE_PATH.'jqForm.php'; // Create instance $newForm = new jqForm('newForm',array('method' => 'post', 'id' => 'newForm')); // Demo Mode creating connection include_once $CODE_PATH.'jqGridPdo.php'; $conn = new PDO(DB_DSN, DB_USER, DB_PASSWORD); $newForm->setConnection( $conn ); // Set url $newForm->setUrl($SERVER_HOST.$SELF_PATH.'jsevent.php'); // Set Form header $formhead='Shipping Details'; $newForm->setFormHeader($formhead,'ui-icon-mail-closed'); // Set parameters $jqformparams = array(); // Set SQL Command, table, keys $newForm->table = 'orders'; $newForm->setPrimaryKeys('OrderID'); $newForm->serialKey = true; // Set Form layout $newForm->setColumnLayout('twocolumn'); $newForm->setTableStyles('width:580px;','',''); // Add elements $newForm->addElement('OrderID','hidden', array('label' => 'OrderID', 'id' => 'newForm_OrderID')); $newForm->addElement('ShipName','text', array('label' => 'Name', 'maxlength' => '40', 'style' => 'width:98%;', 'id' => 'newForm_ShipName')); $newForm->addElement('ShipAddress','text', array('label' => 'Address', 'maxlength' => '60', 'style' => 'width:98%;', 'id' => 'newForm_ShipAddress')); $newForm->addElement('ShipCity','text', array('label' => 'City', 'maxlength' => '15', 'size' => '20', 'id' => 'newForm_ShipCity')); $newForm->addElement('ShipPostalCode','text', array('label' => 'PostalCode', 'maxlength' => '10', 'size' => '20', 'id' => 'newForm_ShipPostalCode')); $newForm->addElement('ShipCountry','text', array('label' => 'Country', 'maxlength' => '15', 'size' => '20', 'id' => 'newForm_ShipCountry')); $newForm->addElement('Freight','number', array('label' => 'Freight', 'id' => 'freight')); $newForm->addElement('Tax','number', array('label' => 'Tax', 'min' => '10', 'max' => '20', 'step' => '10', 'value' => '10', 'id' => 'tax', 'title' => 'Enter a value 10 or 20')); $newForm->addElement('Total','number', array('label' => 'Total', 'readonly' => '1', 'id' => 'total')); $elem_10[]=$newForm->createElement('newSubmit','submit', array('value' => 'Submit')); $newForm->addGroup("newGroup",$elem_10, array('style' => 'text-align:right;', 'id' => 'newForm_newGroup')); // Add events $onchangeFreight = <<< CHANGEFREIGHT function(event) { var fr = parseFloat($("#freight").val()); var tax = parseFloat($("#tax").val()); if( fr && tax ) { var tot = fr*tax; $("#total").val( tot.toFixed(2) ); } } CHANGEFREIGHT; $newForm->addEvent('freight','change',$onchangeFreight); $onchangeTax = <<< CHANGETAX function(event) { var fr = parseFloat($("#freight").val()); var tax = parseFloat($("#tax").val()); if( !isNaN(fr) && !isNaN(tax) ) { var tot = fr*tax; $("#total").val( tot.toFixed(2) ); } } CHANGETAX; $newForm->addEvent('tax','change',$onchangeTax); // Add ajax submit events $newForm->setAjaxOptions( array('iframe' => false, 'forceSync' =>false) ); // Demo mode - no input $newForm->demo = true; // Render the form echo $newForm->renderForm($jqformparams); ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/jqform/jsevents/jsevent.php
PHP
gpl2
3,063
<?php require_once '../../../tabs.php'; ?> <!DOCTYPE html> <html lang="en" class="no-js"> <head> <title>jqForm PHP Demo</title> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/redmond/jquery-ui-1.8.2.custom.css" /> <style type="text/css"> html, body { margin: 0; /* Remove body margin/padding */ padding: 0; /*overflow: hidden;*/ /* Remove scroll bars on browser window */ font-size: 90%; } body { font-family: "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif"; } .ui-input {padding :4px; margin: 1px;} .ui-select {padding : 3px;} .ui-textarea {padding: 3px;} #notsupported { border: 0px none;} </style> <script src="../../../js/jquery.js" type="text/javascript"></script> <script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script> <script src="../../../js/jquery.form.js" type="text/javascript"></script> <script src="../../../js/modernizr-2.0.6.js" type="text/javascript"></script> <script type="text/javascript"> jQuery(document).ready(function(){ if(Modernizr.inputtypes.number) { jQuery("#supported").append("<div>Your browser support input type: number!</div>"); } else { jQuery("#notsupported").append("<div>Your browser does not support input type: number!</div>").addClass('ui-state-error'); } }); </script> </head> <body> <div style="margin-left:20px;margin-right: 20px;"> <?php include ("jsevent.php");?> <div style="text-align: center;margin-top:10px;">This Form is created with HTML5 PHP jqForm builder</div> </div> <br/> <div id="supported"></div> <div id="notsupported"></div> <?php tabs(array("jsevent.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/jqform/jsevents/default.php
PHP
gpl2
1,790
<?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ $SERVER_HOST = ""; // the host name $SELF_PATH = ""; // the web path to the project without http $CODE_PATH = "../../../php/"; // the physical path to the php files include '../../../jq-config.php' ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/jqform/jsevents/jqformconfig.php
PHP
gpl2
319
<?php require_once '../../../tabs.php'; ?> <!DOCTYPE html> <html lang="en" class="no-js"> <head> <title>jqForm PHP Demo</title> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/redmond/jquery-ui-1.8.2.custom.css" /> <style type="text/css"> html, body { margin: 0; /* Remove body margin/padding */ padding: 0; /*overflow: hidden;*/ /* Remove scroll bars on browser window */ font-size: 90%; } body { font-family: "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif"; } .ui-input {padding :4px; margin: 1px;} .ui-select {padding : 3px;} .ui-textarea {padding: 3px;} #notsupported { border: 0px none;} </style> <script src="../../../js/jquery.js" type="text/javascript"></script> <script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script> <script src="../../../js/jquery.form.js" type="text/javascript"></script> <script src="../../../js/modernizr-2.0.6.js" type="text/javascript"></script> <script type="text/javascript"> jQuery(document).ready(function(){ if(Modernizr.inputtypes.number) { jQuery("#supported").append("<div>Your browser support input type: number!</div>"); } else { jQuery("#notsupported").append("<div>Your browser does not support input type: number!</div>").addClass('ui-state-error'); } }); </script> </head> <body> <div style="margin-left:20px;margin-right: 20px;"> <?php include ("defaulticon.php");?> <div style="text-align: center;margin-top:10px;">This Form is created with HTML5 PHP jqForm builder</div> </div> <br/> <div id="supported"></div> <div id="notsupported"></div> <?php tabs(array("defaulticon.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/jqform/defaulticon/default.php
PHP
gpl2
1,798
<?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ $SERVER_HOST = ""; // the host name $SELF_PATH = ""; // the web path to the project without http $CODE_PATH = "../../../php/"; // the physical path to the php files include '../../../jq-config.php' ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/jqform/defaulticon/jqformconfig.php
PHP
gpl2
319
<?php // Include class include_once 'jqformconfig.php'; include_once $CODE_PATH.'jqUtils.php'; include_once $CODE_PATH.'jqForm.php'; // Create instance $newForm = new jqForm('newForm',array('method' => 'post', 'id' => 'newForm')); // Demo Mode creating connection include_once $CODE_PATH.'jqGridPdo.php'; $conn = new PDO(DB_DSN, DB_USER, DB_PASSWORD); $newForm->setConnection( $conn ); // Set url $newForm->setUrl($SERVER_HOST.$SELF_PATH.'defaulticon.php'); // Set Form header $formhead='Shipping Details'; $newForm->setFormHeader($formhead,'ui-icon-mail-closed'); // Set parameters $jqformparams = array(); // Set SQL Command, table, keys $newForm->table = 'orders'; $newForm->setPrimaryKeys('OrderID'); $newForm->serialKey = true; // Set Form layout $newForm->setColumnLayout('twocolumn'); $newForm->setTableStyles('width:580px;','',''); // Add elements $newForm->addElement('OrderID','hidden', array('label' => 'OrderID', 'id' => 'newForm_OrderID')); $newForm->addElement('ShipName','text', array('label' => 'Name', 'maxlength' => '40', 'style' => 'width:98%;', 'id' => 'newForm_ShipName')); $newForm->addElement('ShipAddress','text', array('label' => 'Address', 'maxlength' => '60', 'style' => 'width:98%;', 'id' => 'newForm_ShipAddress')); $newForm->addElement('ShipCity','text', array('label' => 'City', 'maxlength' => '15', 'size' => '20', 'id' => 'newForm_ShipCity')); $newForm->addElement('ShipPostalCode','text', array('label' => 'PostalCode', 'maxlength' => '10', 'size' => '20', 'id' => 'newForm_ShipPostalCode')); $newForm->addElement('ShipCountry','text', array('label' => 'Country', 'maxlength' => '15', 'size' => '20', 'id' => 'newForm_ShipCountry')); $newForm->addElement('Freight','number', array('label' => 'Freight', 'id' => 'newForm_Freight')); $elem_8[]=$newForm->createElement('newSubmit','submit', array('value' => 'Submit')); $newForm->addGroup("newGroup",$elem_8, array('style' => 'text-align:right;', 'id' => 'newForm_newGroup')); // Add events // Add ajax submit events $newForm->setAjaxOptions( array('iframe' => false, 'forceSync' =>false) ); // Demo mode - no input $newForm->demo = true; // Render the form echo $newForm->renderForm($jqformparams); ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/jqform/defaulticon/defaulticon.php
PHP
gpl2
2,196
<?php require_once '../../../tabs2.php'; ?> <!DOCTYPE html> <html lang="en" class="no-js"> <head> <title>jqForm PHP Demo</title> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/redmond/jquery-ui-1.8.2.custom.css" /> <style type="text/css"> html, body { margin: 0; /* Remove body margin/padding */ padding: 0; /*overflow: hidden;*/ /* Remove scroll bars on browser window */ font-size: 90%; } body { font-family: "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif"; } .ui-input {padding :4px; margin: 1px;} .ui-select {padding : 3px;} .ui-textarea {padding: 3px;} #notsupported { border: 0px none;} </style> <script src="../../../js/jquery.js" type="text/javascript"></script> <script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script> <script src="../../../js/jquery.form.js" type="text/javascript"></script> <script src="../../../js/modernizr-2.0.6.js" type="text/javascript"></script> <script type="text/javascript"> jQuery(document).ready(function(){ if(Modernizr.inputtypes.number) { jQuery("#supported").append("<div>Your browser support input type: number!</div>"); } else { jQuery("#notsupported").append("<div>Your browser does not support input type: number!</div>").addClass('ui-state-error'); } }); </script> </head> <body> <div style="margin-left:20px;margin-right: 20px;"> <?php include ("selectstring.php");?> <div style="text-align: center;margin-top:10px;">This Form is created with HTML5 PHP jqForm builder</div> </div> <br/> <div id="supported"></div> <div id="notsupported"></div> <?php tabs(array("selectstring.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/jqform/selectstring/default.php
PHP
gpl2
1,801
<?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ $SERVER_HOST = ""; // the host name $SELF_PATH = ""; // the web path to the project without http $CODE_PATH = "../../../php/"; // the physical path to the php files include '../../../jq-config.php' ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/jqform/selectstring/jqformconfig.php
PHP
gpl2
319
<?php // Include class include_once 'jqformconfig.php'; include_once $CODE_PATH.'jqUtils.php'; include_once $CODE_PATH.'jqForm.php'; // Create instance $newForm = new jqForm('newForm',array('method' => 'post', 'id' => 'newForm')); // Demo Mode creating connection include_once $CODE_PATH.'jqGridPdo.php'; $conn = new PDO(DB_DSN, DB_USER, DB_PASSWORD); $newForm->setConnection( $conn ); // Set url $newForm->setUrl($SERVER_HOST.$SELF_PATH.'selectstring.php'); // Set Form header $formhead='Shipping Details'; $newForm->setFormHeader($formhead,'ui-icon-mail-closed'); // Set parameters $jqformparams = array(); // Set SQL Command, table, keys $newForm->table = 'orders'; $newForm->setPrimaryKeys('OrderID'); $newForm->serialKey = true; // Set Form layout $newForm->setColumnLayout('twocolumn'); $newForm->setTableStyles('width:580px;','',''); // Add elements $newForm->addElement('OrderID','hidden', array('label' => 'OrderID', 'id' => 'newForm_OrderID')); $newForm->addElement('ShipName','text', array('label' => 'Name', 'maxlength' => '40', 'style' => 'width:98%;', 'id' => 'newForm_ShipName')); $newForm->addElement('ShipAddress','text', array('label' => 'Address', 'maxlength' => '60', 'size' => '40', 'style' => 'width:98%;', 'id' => 'newForm_ShipAddress')); $newForm->addElement('ShipCity','text', array('label' => 'City', 'maxlength' => '15', 'size' => '20', 'id' => 'newForm_ShipCity')); $newForm->addElement('ShipPostalCode','text', array('label' => 'PostalCode', 'maxlength' => '10', 'size' => '20', 'id' => 'newForm_ShipPostalCode')); $newForm->addElement('ShipCountry','select', array('label' => 'Country', 'datalist' => 'Argentina:Argentina;Belgium:Belgium;Bulgaria:Bulgaria', 'id' => 'newForm_ShipCountry')); $newForm->addElement('Freight','number', array('label' => 'Freight', 'id' => 'newForm_Freight')); $elem_8[]=$newForm->createElement('newSubmit','submit', array('value' => 'Submit')); $newForm->addGroup("newGroup",$elem_8, array('style' => 'text-align:right;', 'id' => 'newForm_newGroup')); // Add events // Add ajax submit events $newForm->setAjaxOptions( array('iframe' => false, 'forceSync' =>false) ); // Demo mode - no input $newForm->demo = true; // Render the form echo $newForm->renderForm($jqformparams); ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/jqform/selectstring/selectstring.php
PHP
gpl2
2,249
<?php require_once '../../../tabs2.php'; ?> <!DOCTYPE html> <html lang="en" class="no-js"> <head> <title>jqForm PHP Demo</title> <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/redmond/jquery-ui-1.8.2.custom.css" /> <style type="text/css"> html, body { margin: 0; /* Remove body margin/padding */ padding: 0; /*overflow: hidden;*/ /* Remove scroll bars on browser window */ font-size: 90%; } body { font-family: "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif"; } .ui-input {padding :4px; margin: 1px;} .ui-select {padding : 3px;} .ui-textarea {padding: 3px;} #notsupported { border: 0px none;} </style> <script src="../../../js/jquery.js" type="text/javascript"></script> <script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script> <script src="../../../js/jquery.form.js" type="text/javascript"></script> <script src="../../../js/modernizr-2.0.6.js" type="text/javascript"></script> <script type="text/javascript"> jQuery(document).ready(function(){ if(Modernizr.inputtypes.number) { jQuery("#supported").append("<div>Your browser support input type: number!</div>"); } else { jQuery("#notsupported").append("<div>Your browser does not support input type: number!</div>").addClass('ui-state-error'); } }); </script> </head> <body> <div style="margin-left:20px;margin-right: 20px;"> <?php include ("fileupload.php");?> <div style="text-align: center;margin-top:10px;">This Form is created with HTML5 PHP jqForm builder</div> </div> <br/> <div id="supported"></div> <div id="notsupported"></div> <?php tabs(array("fileupload.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/jqform/fileupload/default.php
PHP
gpl2
1,797
<?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ $SERVER_HOST = ""; // the host name $SELF_PATH = ""; // the web path to the project without http $CODE_PATH = "../../../php/"; // the physical path to the php files include '../../../jq-config.php' ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/jqform/fileupload/jqformconfig.php
PHP
gpl2
319