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 // 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.'fileupload.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')); $newForm->addElement('newFile','file', array('label' => 'Attachment', 'id' => 'newForm_newFile')); $elem_9[]=$newForm->createElement('newSubmit','submit', array('value' => 'Submit')); $newForm->addGroup("newGroup",$elem_9, array('style' => 'text-align:right;', 'id' => 'newForm_newGroup')); // automatic file upload options $newForm->setUploadOptions('newFile', array( 'dir'=>'./', // directory to upload 'filetypes'=>'', // allowed file types. if empty all 'filesize'=>1048576,// bytes 1024*1024 = 1Mb 'fileprefix'=>'' // add a prefix to the file name )); // Add events // Add ajax submit events $success = <<< SU function( response, status, xhr) { $("#demo").html(response); } SU; $newForm->setAjaxOptions( array('dataType'=>null, 'resetForm' =>null, 'clearForm' => null, 'success' =>'js:'.$success, 'iframe' => true, '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/fileupload/fileupload.php
PHP
gpl2
2,737
<?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.'labelstyle.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;','text-align:right;',''); // Add elements $newForm->addElement('OrderID','hidden', array('label' => 'OrderID', 'id' => 'newForm_OrderID')); $newForm->addElement('ShipName','text', array('label' => '<b>Name : </b>', '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','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/labelstyle/labelstyle.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 ("labelstyle.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("labelstyle.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/jqform/labelstyle/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/labelstyle/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%; } .ui-input {padding :4px;} .ui-select {padding : 3px;} .ui-textarea {padding: 3px;} </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> <?php include ("selectdbstring.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("selectdbstring.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/jqform/selectdbstring/default.php
PHP
gpl2
1,610
<?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/selectdbstring/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.'selectdbstring.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'); // Add elements $newForm->addElement('OrderID','hidden', array('label' => 'OrderID', 'id' => 'newForm_OrderID')); $newForm->addElement('ShipName','text', array('label' => 'Name', 'maxlength' => '40', 'size' => '40', 'id' => 'newForm_ShipName')); $newForm->addElement('ShipAddress','text', array('label' => 'Address', 'maxlength' => '60', 'size' => '40', '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' => ' : Select 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/selectdbstring/selectdbstring.php
PHP
gpl2
2,226
<?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.pattern) { jQuery("#supported").append("<div>Your browser support 'pattern' input property!</div>"); } else { jQuery("#notsupported").append("<div>Your browser does not support 'pattern' input property!</div>").addClass('ui-state-error'); } 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'); } if(Modernizr.inputtypes.email) { jQuery("#supported").append("<div>Your browser support input type: email!</div>"); } else { jQuery("#notsupported").append("<div>Your browser does not support input type: email!</div>").addClass('ui-state-error'); } if(Modernizr.inputtypes.url) { jQuery("#supported").append("<div>Your browser support input type: url!</div>"); } else { jQuery("#notsupported").append("<div>Your browser does not support input type: url!</div>").addClass('ui-state-error'); } }); </script> </head> <body> <div style="margin-left:20px;margin-right: 20px;"> <?php include ("html5types.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("html5types.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/jqform/html5types/default.php
PHP
gpl2
2,909
<?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/html5types/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('enctype' => 'multipart/form-data', '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.'html5types.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', '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', 'pattern' => '^[\d]{5}(-[\d]{4})?$', 'placeholder' => 'Enter 5 or 9 digit postal code', 'title' => 'Enter valid postal code', 'id' => 'newForm_ShipPostalCode')); $newForm->addElement('ShipCountry','text', array('label' => 'Country', 'maxlength' => '15', 'size' => '20', 'id' => 'newForm_ShipCountry')); $newForm->addElement('Freight','number', array('label' => 'Freight', 'min' => '0.1', 'max' => '40', 'step' => '0.5', 'id' => 'newForm_Freight')); $newForm->addElement('email','email', array('label' => 'Email ', 'style' => 'width:98%;', 'id' => 'newForm_email')); $newForm->addElement('url','url', array('label' => 'Company Url', 'style' => 'width:98%;', 'id' => 'newForm_url')); $elem_10[]=$newForm->createElement('newSubmit','submit', array('value' => 'Submit')); $newForm->addGroup("newGroup",$elem_10, array('style' => 'text-align:right;', 'id' => 'newForm_newGroup')); // Add events // Add ajax submit events $newForm->setAjaxOptions( array('dataType'=>'html', '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/html5types/html5types.php
PHP
gpl2
2,814
<?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'); } 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'); } }); </script> </head> <body> <div style="margin-left:20px;margin-right: 20px;"> <?php include ("onecolumn.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("onecolumn.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/jqform/onecolumn/default.php
PHP
gpl2
2,085
<?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/onecolumn/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.'onecolumn.php'); // Set parameters $jqformparams = array(); // Set SQL Command, table, keys $newForm->table = 'orders'; $newForm->setPrimaryKeys('OrderID'); $newForm->serialKey = true; // Set Form layout $newForm->setColumnLayout('onecolumn'); $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', 'required' => '1', '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/onecolumn/onecolumn.php
PHP
gpl2
2,105
<?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 ("defaultnodb.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("defaultnodb.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/jqform/defaultnodb/default.php
PHP
gpl2
1,799
<?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/defaultnodb/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')); // Set url $newForm->setUrl($SERVER_HOST.$SELF_PATH.'defaultnodb.php'); // Set Form header // Set Form Footer // Set parameters $jqformparams = array(); // Set SQL Command, table, keys $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','text', array('label' => 'ShipCountry', 'maxlength' => '15', 'size' => '20', 'id' => 'newForm_ShipCountry')); $newForm->addElement('Freight','number', array('label' => 'Freight', 'id' => 'newForm_Freight')); $newForm->addElement('details','textarea', array('label' => 'Shipping details', 'rows' => '4', 'style' => 'width:98%;', 'id' => 'newForm_details')); $newForm->addElement('express','checkbox', array('label' => 'Express ', 'id' => 'newForm_express')); $newForm->addElement('Gender','radio', array('label' => 'Gender', 'value' => 'Male', 'text' => 'Male', 'id' => 'newForm_Gender')); $newForm->addElement('Gender','radio', array('value' => 'Female', 'text' => 'Female', 'id' => 'newForm_Gender')); $elem_12[]=$newForm->createElement('newSubmit','submit', array('value' => 'Submit')); $newForm->addGroup("newGroup",$elem_12, 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; $newForm->demo = true; // get the post and send it back if($newForm->oper == 'save') { $str = ""; foreach($_POST as $key => $val) { $str .= $key." = ".$val."<br/>"; } echo $str; exit; } // Render the form echo $newForm->renderForm($jqformparams); ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/jqform/defaultnodb/defaultnodb.php
PHP
gpl2
2,618
<?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 ("sqlquerydata.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("sqlquerydata.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/jqform/sqlquerydata/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/sqlquerydata/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.'sqlquerydata.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 $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/sqlquerydata/sqlquerydata.php
PHP
gpl2
2,577
<?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 ("jscode.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("jscode.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/jqform/jscode/default.php
PHP
gpl2
1,789
<?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/jscode/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.'jscode.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) ); // Add javascript code $javascriptnewForm = <<< JSNEWFORM $("#newForm_ShipName").val("Name set with javascript code"); $("#newForm_ShipAddress").val("Address set with javascript code"); JSNEWFORM; $newForm->setJSCode($javascriptnewForm); // 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/jscode/jscode.php
PHP
gpl2
3,300
<?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.pattern) { jQuery("#supported").append("<div>Your browser support 'pattern' input property!</div>"); } else { jQuery("#notsupported").append("<div>Your browser does not support 'pattern' 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 ("html5pattern.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("html5pattern.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/jqform/html5pattern/default.php
PHP
gpl2
2,086
<?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('enctype' => 'multipart/form-data', '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.'html5pattern.php'); // Set Form header $formhead='Shipping Details'; $newForm->setFormHeader($formhead,'ui-icon-mail-closed'); // Set Form Footer $newForm->setFormFooter("* If entered postal code will be checked"); // 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', 'pattern' => '^[\d]{5}(-[\d]{4})?$', 'placeholder' => 'Enter 5 or 9 digit postal code', 'title' => 'Enter valid postal code', '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('dataType'=>'html', '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/html5pattern/html5pattern.php
PHP
gpl2
2,638
<?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/html5pattern/jqformconfig.php
PHP
gpl2
319
<?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 ("sqlcheckdata.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("sqlcheckdata.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/jqform/sqlcheckdata/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/sqlcheckdata/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.'sqlcheckdata.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','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 $beforeSubmit = <<< BS function(arr, form, options) { var Form = form[0]; if(Form.Freight.value > 20) { alert("Please enter value less then 20"); return false; } } BS; $newForm->setAjaxOptions( array('dataType'=>null, 'resetForm' =>null, 'clearForm' => null, 'beforeSubmit' =>'js:'.$beforeSubmit, '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/sqlcheckdata/sqlcheckdata.php
PHP
gpl2
2,729
<?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/sorting/automatic/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, Freight, ShipName 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('grid.php'); // Set the initial sorting column using the sortname oprion $grid->setGridOptions(array("sortname"=>"OrderID","sortorder"=>"desc","rowNum"=>10,"rowList"=>array(10,20,30))); // 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") ) ); // Enjoy $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/sorting/automatic/grid.php
PHP
gpl2
1,143
<?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/sorting/disable/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 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 the initial sorting column using the sortname oprion $grid->setGridOptions(array("sortname"=>"OrderID","rowNum"=>10,"rowList"=>array(10,20,30))); // Disable sorting on these columns $grid->setColProperty("OrderDate", array( "sortable"=>false, "formatter"=>"date", "formatoptions"=>array("srcformat"=>"Y-m-d H:i:s","newformat"=>"m/d/Y") ) ); $grid->setColProperty("OrderID", array("sortable"=>false)); $grid->setColProperty("CustomerID", array("sortable"=>false)); $grid->setColProperty("ShipName", array("sortable"=>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/sorting/disable/grid.php
PHP
gpl2
1,328
<?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/sorting/customui/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, Freight, ShipName 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('grid.php'); // Set the initial sorting column using the sortname oprion $grid->setGridOptions(array( "sortname"=>"OrderID", "sortorder"=>"desc", "viewsortcols"=>array(true,"horizontal",false), "rowNum"=>10, "rowList"=>array(10,20,30)) ); // 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") ) ); // Enjoy $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/sorting/customui/grid.php
PHP
gpl2
1,216
<?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> <?php tabs(array("grid.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/sorting/custom/default.php
PHP
gpl2
1,406
<?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 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('grid.php'); // Set the initial sorting column using the sortname oprion $grid->setGridOptions(array("sortname"=>"OrderID","rowNum"=>10,"rowList"=>array(10,20,30))); // 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") ) ); $sorcol = <<< ONSORTCOL function (fieldName, columnIndex, sortOrder) { // fieldName is the DataField of the column being sorted // columnIndex is the index of the column (zero bazed) // sortOrder is a string "asc" or "desc" // Do here your custom code if(fieldName=='OrderID') { // set your own sort $("#grid").jqGrid('setGridParam',{sortname: 'OrderID '+sortOrder+', OrderDate'}); // trigger the grid $("#grid").trigger('reloadGrid'); // return stop to prevent other things return 'stop' } } ONSORTCOL; $grid->setGridEvent('onSortCol', $sorcol); // Enjoy $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/sorting/custom/grid.php
PHP
gpl2
1,726
<?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/> <div id="log" style="border: 1px solid black; overflow: auto; width: 600px; height: 150px;"> </div> <br/> <?php tabs(array("grid.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/sorting/clientside/default.php
PHP
gpl2
1,550
<?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 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('grid.php'); // Set the initial sorting column using the sortname oprion $grid->setGridOptions(array("sortname"=>"OrderID","rowNum"=>10,"rowList"=>array(10,20,30))); // 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") ) ); $sorcol = <<< ONSORTCOL function (fieldName, columnIndex, sortOrder) { // fieldName is the DataField of the column being sorted // columnIndex is the index of the column (zero bazed) // sortOrder is a string "asc" or "desc" var line = "<b>Column sorted</b>: " + fieldName + "; Index: " + columnIndex + "; sortOrder: " + sortOrder + "<br/>"; $("#log").append(line); } ONSORTCOL; $grid->setGridEvent('onSortCol', $sorcol); // Enjoy $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/sorting/clientside/grid.php
PHP
gpl2
1,544
<?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-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/grouping/grphead2/default.php
PHP
gpl2
1,341
<?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, ShipCity, ShipCountry FROM orders'; // set the ouput format to json $grid->dataType = 'json'; // Let the grid create the model from SQL query $grid->setColModel(); // Set the url from where we obtain the data $grid->setUrl('grid.php'); // Set alternate background using altRows property $grid->setGridOptions(array( "rowNum"=>10, "sortname"=>"OrderID", "rowList"=>array(10,20,50), "height"=>'auto' )); // 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") ) ); // Enjoy // Set grouping header using setJSCode method $grouping = <<< GROUP jQuery("#grid").jqGrid('setGroupHeaders',{ "useColSpanStyle":false, "groupHeaders" : [ { "startColumnName":'OrderID', "numberOfColumns":2, "titleText":'Order Info' }, { "startColumnName":'ShipName', "numberOfColumns":3, "titleText":'Shipping Details' } ] }); GROUP; $grid->setJSCode($grouping); $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/grouping/grphead2/grid.php
PHP
gpl2
1,629
<?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-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/grouping/grandtotal/default.php
PHP
gpl2
1,341
<?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 orders'; // set the ouput format to json $grid->dataType = 'json'; // Let the grid create the model from SQL query $grid->setColModel(); // Set the url from where we obtain the data $grid->setUrl('grid.php'); // Set alternate background using altRows property $grid->setGridOptions(array( "rowNum"=>10, "sortname"=>"OrderID", "rowList"=>array(10,20,50), "height"=>'auto', "footerrow"=>true, "userDataOnFooter"=>true, "grouping"=>true, "groupingView"=>array( "groupField" => array('CustomerID'), "groupColumnShow" => array(true), "groupText" =>array('<b>{0}</b>'), "groupDataSorted" => true, "groupSummary" => array(true) ) )); // 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") ) ); // Add a summary property to the Freight Column $grid->setColProperty("Freight", array("summaryType"=>"sum", summaryTpl=>"Sum: {0}", "formatter"=>"number")); $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/grouping/grandtotal/grid.php
PHP
gpl2
1,762
<?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-custom.min.js" type="text/javascript"></script> </head> <body> Group By: <select id="chngroup"> <option value="CustomerID">CustomerID</option> <option value="ShipName">ShipName</option> <option value="clear">Remove Grouping</option> </select><br/> <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/grouping/dynamic/default.php
PHP
gpl2
1,536
<?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 orders'; // set the ouput format to json $grid->dataType = 'json'; // Let the grid create the model from SQL query $grid->setColModel(); // Set the url from where we obtain the data $grid->setUrl('grid.php'); // Set alternate background using altRows property $grid->setGridOptions(array( "rowNum"=>10, "sortname"=>"OrderID", "rowList"=>array(10,20,50), "height"=>'auto', "grouping"=>true, "groupingView"=>array( "groupField" => array('CustomerID'), "groupColumnShow" => array(true), "groupText" =>array('<b>{0}</b>'), "groupDataSorted" => true ) )); // 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") ) ); // Change grouping $dynamic = <<<DYNAMIC jQuery("#chngroup").change(function(){ var vl = $(this).val(); if(vl) { if(vl == "clear") { jQuery("#grid").jqGrid('groupingRemove',true); } else { jQuery("#grid").jqGrid('groupingGroupBy',vl); } } }); DYNAMIC; $grid->setJSCode($dynamic); // Enjoy $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/grouping/dynamic/grid.php
PHP
gpl2
1,751
<?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-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/grouping/summaryfooter/default.php
PHP
gpl2
1,341
<?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 orders'; // set the ouput format to json $grid->dataType = 'json'; // Let the grid create the model from SQL query $grid->setColModel(); // Set the url from where we obtain the data $grid->setUrl('grid.php'); // Set alternate background using altRows property $grid->setGridOptions(array( "rowNum"=>10, "sortname"=>"OrderID", "rowList"=>array(10,20,50), "height"=>'auto', "grouping"=>true, "groupingView"=>array( "groupField" => array('CustomerID'), "groupColumnShow" => array(true), "groupText" =>array('<b>{0}</b>'), "groupDataSorted" => true, "groupSummary" => array(true) ) )); // 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") ) ); // Add a summary property to the Freight Column $grid->setColProperty("Freight", array("summaryType"=>"sum", summaryTpl=>"Sum: {0}", "formatter"=>"number")); // Enjoy $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/grouping/summaryfooter/grid.php
PHP
gpl2
1,643
<?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-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/grouping/basic/default.php
PHP
gpl2
1,341
<?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 orders'; // set the ouput format to json $grid->dataType = 'json'; // Let the grid create the model from SQL query $grid->setColModel(); // Set the url from where we obtain the data $grid->setUrl('grid.php'); // Set alternate background using altRows property $grid->setGridOptions(array( "rowNum"=>10, "sortname"=>"OrderID", "rowList"=>array(10,20,50), "height"=>'auto', "grouping"=>true, "groupingView"=>array( "groupField" => array('CustomerID'), "groupColumnShow" => array(true), "groupText" =>array('<b>{0}</b>'), "groupDataSorted" => true ) )); // 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") ) ); // Enjoy $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/grouping/basic/grid.php
PHP
gpl2
1,455
<?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-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/grouping/grphead1/default.php
PHP
gpl2
1,341
<?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, ShipCity, ShipCountry FROM orders'; // set the ouput format to json $grid->dataType = 'json'; // Let the grid create the model from SQL query $grid->setColModel(); // Set the url from where we obtain the data $grid->setUrl('grid.php'); // Set alternate background using altRows property $grid->setGridOptions(array( "rowNum"=>10, "sortname"=>"OrderID", "rowList"=>array(10,20,50), "height"=>'auto' )); // 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") ) ); // Enjoy // Set grouping header using callGridMethod $grid->callGridMethod("#grid", "setGroupHeaders", array(array( "useColSpanStyle"=>true, "groupHeaders"=>array( array( "startColumnName"=>'OrderID', "numberOfColumns"=>2, "titleText"=>'Order Info' ), array( "startColumnName"=>'ShipName', "numberOfColumns"=>3, "titleText"=>'Shipping Details' ) ) ))); $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/grouping/grphead1/grid.php
PHP
gpl2
1,636
<?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-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/editing_data/edit_add_delete/default.php
PHP
gpl2
1,341
<?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, CompanyName, Phone, PostalCode, City FROM customers'; // Set the table to where you add the data $grid->table = 'customers'; $grid->setPrimaryKeyId('CustomerID'); $grid->serialKey = false; // 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"=>"CustomerID" )); // The primary key should be entered $grid->setColProperty('CustomerID', array("editrules"=>array("required"=>true))); // Enable navigator $grid->navigator = true; // Enable only deleting $grid->setNavOptions('navigator', array("excel"=>false,"add"=>true,"edit"=>true,"del"=>true,"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/editing_data/edit_add_delete/grid.php
PHP
gpl2
1,363
<?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 require_once("grid.php");?> </div> <br/> <?php tabs(array("grid.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/editing_data/edit_types/default.php
PHP
gpl2
1,423
<?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, CustomerID, Freight, OrderDate, ShipCity FROM orders'; // set the ouput format to json $grid->table = 'orders'; $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","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, "editable"=>false ) ); $grid->setColProperty("OrderID",array("editable"=>false)); $grid->setColProperty("ShipCity",array("editable"=>false)); $grid->setSelect('CustomerID', "SELECT CustomerID, CompanyName FROM customers"); // Enable toolbar searching $grid->navigator = true; $grid->setNavOptions('navigator', array("del"=>false,"excel"=>false,"search"=>false,"refresh"=>false)); $grid->setNavOptions('edit', array("height"=>110,"dataheight"=>"auto")); $grid->setNavOptions('add', array("height"=>110,"dataheight"=>"auto")); // Enjoy $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/editing_data/edit_types/grid.php
PHP
gpl2
1,676
<?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; var lastSelection; </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/editing_data/inlinecustom/default.php
PHP
gpl2
1,366
<?php ini_set("display_errors","1"); require_once '../../../jq-config.php'; // include the jqGrid Class require_once ABSPATH."php/jqAutocomplete.php"; require_once ABSPATH."php/jqCalendar.php"; 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 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'); $grid->cacheCount = true; // 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), "postData"=>array("grid_recs"=>776) )); // Change some property of the field(s) $grid->setColProperty("OrderID", array("label"=>"ID", "width"=>60, "editable"=>false)); $grid->setColProperty("OrderDate", array( "formatter"=>"date", "formatoptions"=>array("srcformat"=>"Y-m-d H:i:s","newformat"=>"m/d/Y") ) ); $grid->setAutocomplete("CustomerID",false,"SELECT CustomerID, CompanyName FROM customers WHERE CompanyName LIKE ? ORDER BY CompanyName",null,true,true); $grid->setDatepicker("OrderDate",array("buttonOnly"=>false)); $grid->datearray = array('OrderDate'); // Enjoy $grid->navigator = false; $onselrow = <<< ONSELROW function(rowid, selected) { if(rowid && rowid !== lastSelection) { $("#grid").jqGrid('restoreRow', lastSelection); $("#grid").jqGrid('editRow', rowid, true); lastSelection = rowid; } } ONSELROW; $grid->setGridEvent('onSelectRow', $onselrow); $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/editing_data/inlinecustom/grid.php
PHP
gpl2
2,081
<?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-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/editing_data/showerrors/default.php
PHP
gpl2
1,340
<?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, CompanyName, Phone, PostalCode, City FROM customers'; // Set the table to where you update the data $grid->table = 'customers_bad'; // Set output format to json $grid->dataType = 'json'; // Let the grid create the model $grid->setPrimaryKeyId('CustomerID'); $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"=>"CustomerID" )); $grid->setColProperty('CustomerID', array("editoptions"=>array("readonly"=>true))); // show the server errors at client $grid->showError = true; // Enable navigator $grid->navigator = true; // Enable only editing $grid->setNavOptions('navigator', array("excel"=>false,"add"=>false,"edit"=>true,"del"=>false,"view"=>false, "search"=>false)); // Close the dialog after editing $grid->setNavOptions('edit',array("closeAfterEdit"=>true,"editCaption"=>"Update Customer","bSubmit"=>"Update")); // Enjoy $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/editing_data/showerrors/grid.php
PHP
gpl2
1,521
<?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-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/editing_data/datepicker/default.php
PHP
gpl2
1,340
<?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 EmployeeID, FirstName, LastName, BirthDate FROM employees'; // Set the table to where you add the data $grid->table = 'employees'; // 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'); // add a action column and instruct the formatter to create the needed butons // for inline editing $grid->addCol(array( "name"=>"actions", "formatter"=>"actions", "editable"=>false, "sortable"=>false, "resizable"=>false, "fixed"=>true, "width"=>60, // use keys to save or cancel a row. "formatoptions"=>array("keys"=>true) ), "first"); $grid->setColProperty('EmployeeID', array("editable"=>false, "width"=>50, "label"=>"ID")); $grid->setColProperty('BirthDate', array("formatter"=>"date", "formatoptions"=>array("srcformat"=>"Y-m-d H:i:s", "newformat"=>"Y-m-d"), // Ok. We use some trick here to create the datepicer on dataInit event // when the element is created. Note the js: before the function. // this instruct the grid to put a javascript code without additional formating "editoptions"=>array("dataInit"=> "js:function(elm){setTimeout(function(){ jQuery(elm).datepicker({dateFormat:'yy-mm-dd'}); jQuery('.ui-datepicker').css({'font-size':'75%'}); },200);}") )); // Set some grid options $grid->setGridOptions(array( "rowNum"=>10, "rowList"=>array(10,20,30), "sortname"=>"EmployeeID" )); // Enjoy $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/editing_data/datepicker/grid.php
PHP
gpl2
2,108
<?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; var lastSelection; </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/editing_data/inlinenav/default.php
PHP
gpl2
1,366
<?php ini_set("display_errors","1"); require_once '../../../jq-config.php'; // include the jqGrid Class require_once ABSPATH."php/jqAutocomplete.php"; require_once ABSPATH."php/jqCalendar.php"; 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, CustomerID, OrderDate, 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'); $grid->cacheCount = true; // 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), "postData"=>array("grid_recs"=>776) )); // Change some property of the field(s) $grid->setColProperty("OrderID", array("label"=>"ID", "width"=>60, "editable"=>false)); $grid->setColProperty("Freight", array("editrules"=>array("number"=>true,"required"=>true))); $grid->setColProperty("OrderDate", array( "formatter"=>"date", "formatoptions"=>array("srcformat"=>"Y-m-d H:i:s","newformat"=>"m/d/Y") ) ); $grid->setColProperty("CustomerID", array("editrules"=>array("required"=>true))); $grid->setAutocomplete("CustomerID",false,"SELECT CustomerID, CompanyName FROM customers WHERE CompanyName LIKE ? ORDER BY CompanyName",null,true,true); // this is only in this case since the orderdate is set as date time $grid->setUserTime("m/d/Y"); $grid->setUserDate("m/d/Y"); $grid->setDatepicker("OrderDate",array("buttonOnly"=>false)); $grid->datearray = array('OrderDate'); // navigator first should be enabled $grid->navigator = true; $grid->setNavOptions('navigator', array("add"=>false,"edit"=>false,"excel"=>false)); // and just enable the inline $grid->inlineNav = true; $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/editing_data/inlinenav/grid.php
PHP
gpl2
2,276
<?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/editing_data/after_edit/default.php
PHP
gpl2
1,346
<?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/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, CompanyName, Phone, PostalCode, City 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, "rowList"=>array(10,20,30), "sortname"=>"CustomerID" )); $grid->setColProperty('CustomerID', array("editoptions"=>array("readonly"=>true))); // For demonstration purposes only we will update the Customer name adding at end of // the field U after the data is updated from the user // We can set ulimited commands after edit occur. // The same apply for del and add operation $cid = jqGridUtils::GetParam('CustomerID'); // This command is executed immediatley after edit occur. $grid->setAfterCrudAction('edit', "UPDATE customers SET CompanyName = CONCAT(CompanyName,' -U') WHERE CustomerID=?",array($cid)); // Enable navigator $grid->navigator = true; // Enable only editing $grid->setNavOptions('navigator', array("excel"=>false,"add"=>false,"edit"=>true,"del"=>false,"view"=>true, "search"=>false)); // Close the dialog after editing $grid->setNavOptions('edit',array("closeAfterEdit"=>true,"editCaption"=>"Update Customer","bSubmit"=>"Update")); // Enjoy $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/editing_data/after_edit/grid.php
PHP
gpl2
1,953
<?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/editing_data/inlinenavact/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/jqCalendar.php"; 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 EmployeeID, FirstName, LastName, BirthDate FROM employees'; // Set the table to where you add the data $grid->table = 'employees'; // 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'); $grid->setColProperty('EmployeeID', array("editable"=>false)); $grid->setColProperty('BirthDate', array("formatter"=>"date","formatoptions"=>array("srcformat"=>"Y-m-d H:i:s", "newformat"=>"Y-m-d"))); // Set some grid options $grid->setUserTime("m/d/Y"); $grid->setDatepicker("BirthDate",array("buttonOnly"=>false)); $grid->setGridOptions(array( "rowNum"=>10, "rowList"=>array(10,20,30), "sortname"=>"EmployeeID" )); // navigator first should be enabled $grid->navigator = true; $grid->setNavOptions('navigator', array("add"=>false,"edit"=>false,"excel"=>false, "search"=>false,"del"=>false, "refresh"=>false)); // and just enable the inline $grid->inlineNav = true; // disable editing - just adding $grid->inlineNavOptions('navigator', array("edit"=>false) ); $grid->callGridMethod("#grid", 'setFrozenColumns'); // Enjoy $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/editing_data/inlinenavact/grid.php
PHP
gpl2
1,721
<?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-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/editing_data/delete/default.php
PHP
gpl2
1,341
<?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, CompanyName, Phone, PostalCode, City FROM customers'; // Set the table to where you delete the data $grid->table = 'customers'; // 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"=>"CustomerID" )); // Enable navigator $grid->navigator = true; // Enable only deleting $grid->setNavOptions('navigator', array("excel"=>false,"add"=>false,"edit"=>false,"del"=>true,"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/editing_data/delete/grid.php
PHP
gpl2
1,185
<?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%; } .ui-datepicker {z-index:1200;} </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/editing_data/datepicker_editdialog/default.php
PHP
gpl2
1,379
<?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 EmployeeID, FirstName, LastName, BirthDate FROM employees'; // Set the table to where you add the data $grid->table = 'employees'; // 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'); $grid->setColProperty('EmployeeID', array("editable"=>false)); $grid->setColProperty('BirthDate', array("formatter"=>"date", "formatoptions"=>array("srcformat"=>"Y-m-d H:i:s", "newformat"=>"Y-m-d"), "editoptions"=>array("dataInit"=> "js:function(elm){setTimeout(function(){ jQuery(elm).datepicker({dateFormat:'yy-mm-dd'}); jQuery('.ui-datepicker').css({'zIndex':'1200','font-size':'75%'});},100);}") )); // Set some grid options $grid->setGridOptions(array( "rowNum"=>10, "scrollrows"=>true, "rowList"=>array(10,20,30), "sortname"=>"EmployeeID" )); $grid->navigator= true; $grid->setNavOptions('navigator', array("excel"=>false,"add"=>true,"edit"=>true,"del"=>false,"view"=>false, "search"=>false)); // Close the dialog after editing $grid->setNavOptions('edit',array("height"=>150,"dataheight"=>'auto', "closeAfterEdit"=>true)); $grid->setNavOptions('add',array("height"=>150,"dataheight"=>'auto',"closeAfterEdit"=>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/editing_data/datepicker_editdialog/grid.php
PHP
gpl2
1,884
<?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-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/editing_data/customerror/default.php
PHP
gpl2
1,340
<?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, CompanyName, Phone, PostalCode, City FROM customers'; // Set the table to where you update the data $grid->table = 'customers'; // Set output format to json $grid->dataType = 'json'; // set a bad primary key to invoke a error $grid->setPrimaryKeyId('CustomerID1'); // 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"=>"CustomerID" )); $grid->setColProperty('CustomerID', array("editoptions"=>array("readonly"=>true))); // show the server errors at client $grid->showError = true; $grid->customError = "MyError"; // Enable navigator $grid->navigator = true; // Enable only editing $grid->setNavOptions('navigator', array("excel"=>false,"add"=>false,"edit"=>true,"del"=>false,"view"=>false, "search"=>false)); // Close the dialog after editing $grid->setNavOptions('edit',array("closeAfterEdit"=>true,"editCaption"=>"Update Customer","bSubmit"=>"Update")); // Enjoy $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; //Custom function to show the error function MyError($oper, $msg) { if($oper == "edit") { return "Custom error:Bad primary key!"; } } ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/editing_data/customerror/grid.php
PHP
gpl2
1,732
<?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-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/editing_data/edit_dialog_custom/default.php
PHP
gpl2
1,340
<?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, CompanyName, Phone, PostalCode, City FROM customers'; // Set the table to where you update the data $grid->table = 'customers'; // 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"=>"CustomerID" )); // Set the custom code for the fields $grid->setColProperty('CustomerID', array("editoptions"=>array("readonly"=>true))); $grid->setColProperty('Phone',array("formoptions"=>array("rowpos"=>1,"colpos"=>2))); $grid->setColProperty('CompanyName',array( "formoptions"=>array("label"=>"Company", "elmsuffix"=>"(required)"), "editrules"=>array("required"=>true)) ); // Enable navigator $grid->navigator = true; // Enable only editing $grid->setNavOptions('navigator', array("excel"=>false,"add"=>false,"edit"=>true,"del"=>false,"view"=>false, "search"=>false)); // Some options for the edit $grid->setNavOptions('edit',array("closeAfterEdit"=>true,"width"=>470,"height"=>170,"dataheight"=>100)); // Enjoy $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/editing_data/edit_dialog_custom/grid.php
PHP
gpl2
1,687
<?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-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/editing_data/edit_dialog/default.php
PHP
gpl2
1,340
<?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, CompanyName, Phone, PostalCode, City FROM customers'; // Set the table to where you update the data $grid->table = 'customers'; // 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"=>"CustomerID" )); $grid->setColProperty('CustomerID', array("editoptions"=>array("readonly"=>true))); // Enable navigator $grid->navigator = true; // Enable only editing $grid->setNavOptions('navigator', array("excel"=>false,"add"=>false,"edit"=>true,"del"=>false,"view"=>false, "search"=>false)); // Close the dialog after editing $grid->setNavOptions('edit',array("closeAfterEdit"=>true,"editCaption"=>"Update Customer","bSubmit"=>"Update")); // Enjoy $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/editing_data/edit_dialog/grid.php
PHP
gpl2
1,415
<?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/editing_data/inline/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 EmployeeID, FirstName, LastName, BirthDate FROM employees'; // Set the table to where you add the data $grid->table = 'employees'; // 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'); $grid->addCol(array( "name"=>"actions", "formatter"=>"actions", "editable"=>false, "sortable"=>false, "resizable"=>false, "fixed"=>true, "width"=>60, "formatoptions"=>array("keys"=>true) ), "first"); $grid->setColProperty('EmployeeID', array("editable"=>false)); $grid->setColProperty('BirthDate', array("formatter"=>"date","formatoptions"=>array("srcformat"=>"Y-m-d H:i:s", "newformat"=>"Y-m-d"))); // Set some grid options $grid->setGridOptions(array( "rowNum"=>10, "rowList"=>array(10,20,30), "sortname"=>"EmployeeID" )); // Enjoy $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/editing_data/inline/grid.php
PHP
gpl2
1,424
<?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-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/editing_data/add_new_row/default.php
PHP
gpl2
1,340
<?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, CompanyName, Phone, PostalCode, City FROM customers'; // Set the table to where we add the data $grid->table = 'customers'; // We tell that the primary key is not serial, which should be inserted by the user $grid->serialKey = false; // 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"=>"CustomerID" )); // The primary key should be entered $grid->setColProperty('CustomerID', array("editrules"=>array("required"=>true))); // Enable navigator $grid->navigator = true; // Enable only adding $grid->setNavOptions('navigator', array("excel"=>false,"add"=>true,"edit"=>false,"del"=>false,"view"=>false, "search"=>false)); // Close the dialog after the record is added $grid->setNavOptions('add',array("closeAfterAdd"=>true,"reloadAfterSubmit"=>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/editing_data/add_new_row/grid.php
PHP
gpl2
1,539
<?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-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/editing_data/clientside_validation/default.php
PHP
gpl2
1,340
<?php require_once '../../../jq-config.php'; // include the jqGrid Class require_once ABSPATH."php/jqGrid.php"; // Create the jqGrid instance $grid = new jqGridRender(); // Lets create the model manually $Model = array( array("name"=>"Integer", "editable"=>true,"sorttype"=>"integer", "editrules"=>array("required"=>true, "integer"=>true, "minValue"=>100,"maxValue"=>1000) ), array("name"=>"Number","editable"=>true,"sorttype"=>"number", "editrules"=>array("required"=>true, "number"=>true, "minValue"=>0,"maxValue"=>10000) ), array("name"=>"Currency","editable"=>true, "sorttype"=>"number", "editrules"=>array("required"=>true, "number"=>true, "minValue"=>0)), array("name"=>"Email","editable"=>true, "formatter"=>"email", "editrules"=>array("email"=>true) ), array("name"=>"Link","editable"=>true, "width"=>120, "formatter"=>"link", "editrules"=>array("url"=>true) ), ); // Let the grid create the model $grid->setColModel($Model); // Set grid option datatype to be local and editurl to point to dummy file $grid->setGridOptions(array("datatype"=>"local", "editurl"=>"dummy.txt")); //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"), array("Integer"=>1600000,"Number"=>75200000.23,"Currency"=>245.2,"Email"=>"joe.woe@google.com","Link"=>"http://www.google.com"), array("Integer"=>652693,"Number"=>34534000.33,"Currency"=>18545.2,"Email"=>"julia.bergman@bing.com","Link"=>"http://www.bing.com"), array("Integer"=>1237,"Number"=>3450.30,"Currency"=>55597545.2,"Email"=>"roy.corner@msn.com","Link"=>"http://www.msn.com") ); // Let put it using the callGridMethod $grid->callGridMethod("#grid", 'addRowData', array("Integer",$data)); $grid->navigator = true; // Enable only editing $grid->setNavOptions('navigator', array("excel"=>false,"add"=>false,"edit"=>true,"del"=>false,"view"=>false, "search"=>false)); // Close the dialog after editing $grid->setNavOptions('edit',array("closeAfterEdit"=>true,"reloadAfterSubmit"=>false)); $grid->renderGrid('#grid','#pager',true, null, null, true,true); ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/editing_data/clientside_validation/grid.php
PHP
gpl2
2,246
<?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-custom.min.js" type="text/javascript"></script> </head> <body> <div> <?php include ("grid.php");?> </div> <br/> <?php tabs(array("grid.php", "city.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/editing_data/depend_listbox/default.php
PHP
gpl2
1,352
<?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, CompanyName, Phone, PostalCode, Country, City FROM customers'; // Set the table to where you update the data $grid->table = 'customers'; $grid->setPrimaryKeyId("CustomerID"); $grid->serialKey = false; // 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"=>"CustomerID" )); $grid->setColProperty('CustomerID', array("editoptions"=>array("readonly"=>true))); $grid->setColProperty('City', array("edittype"=>"select", "editoptions"=>array("value"=>" :Select"))); $grid->setSelect("Country","SELECT DISTINCT Country, Country FROM customers ORDER BY Country", true, true, false); //$grid->setSelect("City","SELECT DISTINCT City, City FROM customers ORDER BY City", true, true, false); // This event check if we are in add or edit mode and is lunched // every time the form opens. // The purpose of thris event is to get the value of the selected // country and to get the values of the cityes for that country when the form is open. // Another action here is to select the city from the grid $beforeshow = <<< BEFORESHOW function(formid) { // get the value of the country var cntryval = $("#Country",formid).val(); jQuery("#City",formid).html("<option>Select</option>"); if(cntryval) { // if the value is found try to use ajax call to obtain the citys // please look at file file city.php jQuery.ajax({ url: 'city.php', dataType: 'json', data: {q:cntryval}, success : function(response) { var t="", sv=""; var sr = jQuery("#grid").jqGrid('getGridParam','selrow'); if(sr) { // get the selected city from grid sv = jQuery("#grid").jqGrid('getCell',sr,'City'); jQuery.each(response, function(i,item) { t += "<option value='"+item.id+"'>"+item.value+"</option>"; }); // empty the select and put the new selection jQuery("#City",formid).html("").append(t); if(sv) { // select the city value jQuery("#City",formid).val(sv).removeAttr("disabled"); } } } }); } else { jQuery("#City",formid).attr("disabled","disabled"); } } BEFORESHOW; // With this event we bind a change event for the first select. // If a new value is selected we make ajax call and try to get the citys for this country // Note that this event should be executed only once if the form is constructed. $initform = <<< INITFORM function(formid) { jQuery("#Country",formid).change(function(e) { var cntryval = $(this).val(); if(cntryval) { jQuery("#City",formid).html(""); jQuery.ajax({ url: 'city.php', dataType: 'json', data: {q:cntryval}, success : function(response) { var t=""; jQuery.each(response, function(i,item) { t += "<option value='"+item.id+"'>"+item.value+"</option>"; }); jQuery("#City",formid).append(t).removeAttr("disabled"); } }); } }); } INITFORM; // Enable navigator $grid->navigator = true; // Enable only editing $grid->setNavOptions('navigator', array("excel"=>false,"add"=>true,"edit"=>true,"del"=>false,"view"=>false, "search"=>false)); // Close the dialog after editing $grid->setNavOptions('edit',array("closeAfterEdit"=>true,"editCaption"=>"Update Customer","bSubmit"=>"Update", "viewPagerButtons"=>false)); // Bind the before show Form event in add and edit mode. $grid->setNavEvent('edit', 'beforeShowForm', $beforeshow); $grid->setNavEvent('add', 'beforeShowForm', $beforeshow); // Bind the initialize Form event in add and edit mode. $grid->setNavEvent('edit', 'onInitializeForm', $initform); $grid->setNavEvent('add', 'onInitializeForm', $initform); // Enjoy $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/editing_data/depend_listbox/grid.php
PHP
gpl2
4,328
<?php require_once '../../../jq-config.php'; require_once ABSPATH."php/jqGridPdo.php"; $country = $_GET['q']; if($country){ try { $conn = new PDO(DB_DSN,DB_USER,DB_PASSWORD); $SQL = "SELECT DISTINCT(City) id, City value FROM customers WHERE Country='".$country."' ORDER BY City"; $collation = jqGridDB::query($conn, "SET NAMES utf8"); $city = jqGridDB::query($conn, $SQL); $result = jqGridDB::fetch_object($city, true, $conn); echo json_encode($result); } catch (Exception $e) { echo $e->getMessage(); } } ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/editing_data/depend_listbox/city.php
PHP
gpl2
527
<?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> <button id="getselected">Get Selected Rows</button><button id="setselection">Select Row 10259</button> <br/> <br/> <?php tabs(array("grid.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/selection/selectedrow_client/default.php
PHP
gpl2
1,536
<?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 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('grid.php'); // Set some grid options $grid->setGridOptions(array( "rowNum"=>10, "sortname"=>"OrderID", "rowList"=>array(10,20,30) )); // 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") ) ); $custom = <<<CUSTOM jQuery("#getselected").click(function(){ var selr = jQuery('#grid').jqGrid('getGridParam','selrow'); if(selr) alert(selr); else alert("No selected row"); return false; }); jQuery("#setselection").click(function(){ jQuery('#grid').jqGrid('setSelection','10259'); return false; }); CUSTOM; $grid->setJSCode($custom); // Enjoy $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/selection/selectedrow_client/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> <b>Customers</b> <?php include ("grid.php");?> </div> <div> <b>Orders for the selected Customer</b> <?php include ("detail.php");?> </div> <br/> <?php tabs(array("grid.php","detail.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/selection/masterdetail/default.php
PHP
gpl2
1,571
<?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, CompanyName, ContactName, Phone, City FROM customers'; // Set the table to where you update the data $grid->table = 'customers'; // 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"=>"CustomerID" )); $grid->setColProperty('CustomerID', array("label"=>"ID", "width"=>50)); $selectorder = <<<ORDER function(rowid, selected) { if(rowid != null) { jQuery("#detail").jqGrid('setGridParam',{postData:{CustomerID:rowid}}); jQuery("#detail").trigger("reloadGrid"); } } ORDER; $grid->setGridEvent('onSelectRow', $selectorder); // 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); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/selection/masterdetail/grid.php
PHP
gpl2
1,511
<?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"); // Get the needed parameters passed from the main grid if(isset ($_REQUEST["CustomerID"])) $rowid = jqGridUtils::Strip($_REQUEST["CustomerID"]); else $rowid = ""; // Create the jqGrid instance $grid = new jqGridRender($conn); // Write the SQL Query $grid->SelectCommand = "SELECT OrderID, RequiredDate, ShipName, ShipCity, Freight FROM orders WHERE CustomerID= ?"; // set the ouput format to json $grid->dataType = 'json'; // Let the grid create the model $grid->setColModel(null, array(&$rowid)); // Set the url from where we obtain the data $grid->setUrl('detail.php'); // Set some grid options $grid->setGridOptions(array( "rowNum"=>10, "footerrow"=>true, "userDataOnFooter"=>true, "sortname"=>"OrderID", "height"=>110 )); // 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"=>true,"add"=>false,"edit"=>false,"del"=>false,"view"=>false)); // Enjoy $summaryrow = array("Freight"=>array("Freight"=>"SUM")); $grid->renderGrid("#detail","#pgdetail", true, $summaryrow, array(&$rowid), true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/selection/masterdetail/detail.php
PHP
gpl2
1,601
<?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> <button id="getselected">Get Selected Rows</button> <br/> <br/> <?php tabs(array("grid.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/selection/multiselect/default.php
PHP
gpl2
1,485
<?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 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('grid.php'); // Set some grid options $grid->setGridOptions(array( "rowNum"=>10, "sortname"=>"OrderID", "rowList"=>array(10,20,30), "multiselect"=>true)); // 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") ) ); $custom = <<<CUSTOM jQuery("#getselected").click(function(){ var selr = jQuery('#grid').jqGrid('getGridParam','selarrrow'); if(selr) alert(selr); }); CUSTOM; $grid->setJSCode($custom); // Enjoy $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/selection/multiselect/grid.php
PHP
gpl2
1,390
<?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> <b>Employees</b> <?php include ("grid.php");?> </div> <div> <b>Orders for the selected Employee</b> <?php include ("detail.php");?> </div> <br/> <?php tabs(array("grid.php","detail.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/selection/masterdetail2/default.php
PHP
gpl2
1,577
<?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 EmployeeID, FirstName, LastName, HomePhone, City FROM employees'; // Set the table to where you update the data $grid->table = 'employees'; // 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"=>"EmployeeID" )); $grid->setColProperty('EmployeeID', array("label"=>"ID", "width"=>50)); $selectorder = <<<ORDER function(rowid, selected) { if(rowid != null) { jQuery("#detail").jqGrid('setGridParam',{postData:{EmployeeID:rowid}}); jQuery("#detail").trigger("reloadGrid"); // Enable CRUD buttons in navigator when a row is selected jQuery("#add_detail").removeClass("ui-state-disabled"); jQuery("#edit_detail").removeClass("ui-state-disabled"); jQuery("#del_detail").removeClass("ui-state-disabled"); } } ORDER; // We should clear the grid data on second grid on sorting, paging, etc. $cleargrid = <<<CLEAR function(rowid, selected) { // clear the grid data and footer data jQuery("#detail").jqGrid('clearGridData',true); // Disable CRUD buttons in navigator when a row is not selected jQuery("#add_detail").addClass("ui-state-disabled"); jQuery("#edit_detail").addClass("ui-state-disabled"); jQuery("#del_detail").addClass("ui-state-disabled"); } CLEAR; $grid->setGridEvent('onSelectRow', $selectorder); $grid->setGridEvent('onSortCol', $cleargrid); $grid->setGridEvent('onPaging', $cleargrid); // 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); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/selection/masterdetail2/grid.php
PHP
gpl2
2,290
<?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"); // Get the needed parameters passed from the main grid $rowid = jqGridUtils::GetParam('EmployeeID', 0); // Create the jqGrid instance $grid = new jqGridRender($conn); // Write the SQL Query $grid->SelectCommand = "SELECT OrderID, RequiredDate, ShipName, ShipCity, Freight, EmployeeID FROM orders WHERE EmployeeID= ?"; // set the ouput format to json $grid->dataType = 'json'; // Let the grid create the model $grid->setPrimaryKeyId('OrderID'); $grid->setColModel(null, array((int)$rowid)); // Set the url from where we obtain the data $grid->setUrl('detail.php'); // Set some grid options $grid->setGridOptions(array( "rowNum"=>10, "footerrow"=>true, "userDataOnFooter"=>true, "sortname"=>"OrderID", "height"=>110 )); // 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 ) ); // on beforeshow form when add we get the customer id and set it for posting $beforeshow = <<<BEFORE function(formid) { var srow = jQuery("#grid").jqGrid('getGridParam','selrow'); if(srow) { var gridrow = jQuery("#grid").jqGrid('getRowData',srow); $("#CustomerID",formid).val(gridrow.CustomerID); } } BEFORE; // disable the CRUD buttons when we initialy load the grid $initgrid = <<< INIT jQuery("#add_detail").addClass("ui-state-disabled"); jQuery("#edit_detail").addClass("ui-state-disabled"); jQuery("#del_detail").addClass("ui-state-disabled"); INIT; $grid->setJSCode($initgrid); $grid->setColProperty("EmployeeID",array("hidden"=>false,"width"=>20)); $grid->navigator = true; $grid->setNavOptions('navigator', array("excel"=>true,"add"=>true,"edit"=>true,"del"=>true,"view"=>false)); $grid->setNavEvent('add', 'beforeShowForm', $beforeshow); // Enjoy $summaryrow = array("Freight"=>array("Freight"=>"SUM")); $grid->renderGrid("#detail","#pgdetail", true, $summaryrow, array((int)$rowid), true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/selection/masterdetail2/detail.php
PHP
gpl2
2,305
<?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/paging/customui/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, Freight, ShipName 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('grid.php'); // Set some grid options $grid->setGridOptions(array( "rowNum"=>5, "sortname"=>"OrderID", "rowList"=>array(5,10,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") ) ); // Enjoy $grid->renderGrid('#grid','#pager',true, null, null, true,true); $conn = null; ?>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/paging/customui/grid.php
PHP
gpl2
1,176
<?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/paging/scrollbar/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 longorders WHERE OrderID <= 500000'; // 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 in grid options scroll to 1 $grid->setGridOptions(array("scroll"=>1,"rowNum"=>100,"sortname"=>"OrderID","height"=>200)); // Change some property of the field(s) $grid->setColProperty("OrderID", array("width"=>80)); $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/paging/scrollbar/grid.php
PHP
gpl2
1,180
<?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>jqTreeGrid 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-custom.min.js" type="text/javascript"></script> </head> <body> <div> <?php include ("treegrid.php");?> </div> <br/> <?php tabs(array("treegrid.php"));?> </body> </html>
zzyn125-bench
BigMelon/Backup/jslib_backup/jqSuitePHP_4_3_2_0/examples/tree/addeditdelete/default.php
PHP
gpl2
1,353