CORE Revision 1.1.45

The links you see here are partly for instructional examples, but mostly for object debugging.

HOME | Coredoc | accordian | single | tile | form | expandytable | gantt | tickets-xml | nest | chart | tabs | prefs | misc | data | table | bandwidth | css | state | database | csv | free | texttable | tickets | multicell | refresh | gauge | cypher | jquery | tableform
Core includes:
  • Data abstraction
  • Outputs
  • Miscellaneous tools
    • HTML Form elements
      • Standard elements
      • Popups from queries
      • Popups from arrays
      • Date/Calendar popups
  • Database abstraction, should the need ever arise to move away from mysql
    • Connect -> mysql_connect, and uses DEFINES from the config file, so you don't have to mess with passwords. Also includes database selection as part of the DEFINE.
    • SelectDatabase -> mysql_select_db
    • Query -> mysql_query
    • FetchArray -> mysql_fetch_array
    • Other stuff
      • GrabData - grab a single cell
      • GrabRow - grab a row, return in array hash
      • GrabColumn - grab a column, return in an array
  • Debugging - when the config file directive $DEBUG is false, these functions do not output, in case you forget to clean up debug.
    • PrintR - just like print_r, but formatted for display
    • PrintDebug - prints the debug log




    Click to drag Click to collapse Resize Source code
    /home/bartniedner_com/core.bartniedner.com/htdocs/index.php
    <?
    include("core.inc.php");
    include("examples/head.php");
    
    
    ?>
    Core includes:
    <li>Data abstraction</li>
    <ul>
    <li><a href = "examples/data.php">Arrays and array hashes</a></li>
    <li><a href = "examples/data.php">Databases (mysql)</a></li>
    <li>XML (untested and unsupported since nov-06)</li>
    </ul>
    <li>Outputs</li>
    <ul>
    	<li>Tables</li>
    	<ul>
    		<li><a href="examples/single.php">Single column</a></li>
    		<li><a href="examples/table.php">Multi-column, excel style</a> - sortable, searchable, AJAX'd</li>
    		<li><a href="examples/expandytable.php">Expandable</a> - uses AJAX to do the hidden rows.</li>
    		<li><a href="examples/multicell.php">Complex layouts</a> - heavily CSSed</li>
    	</ul>
    	<li><a href="examples/chart.php">Graphs</a></li>
    	<li>Forms</li>
    	<ul>
    		<li><a href="examples/form.php">Single column</a> (most common)</li>
    		<li><a href="examples/tableform.php">Multi-column</a></li>
    		<li>..with 'update/insert' Query Guessing</li>
    		<li>Validation (soon)</li>
    	</ul>
    	<li><a href="examples/free.php">Free Text</a> - put any sort of output inside the standard "window widget"</li>
    	<li><a href="examples/nest.php">Multiple outputs within one window</a> - put any sort of output inside the standard "window widget"</li>
    	<li><a href="examples/csv.php">Free Text</a> - outoput in good old csv or tsv.  customizable delimiters of course</li>
    	<li><a href="examples/tabs.php">Tabs</a> - stick several different outputs inside a single, tabbed output</li>
    </ul>
    <li>Miscellaneous tools</li>
    <ul>
    	<li><a href="examples/misc.php">HTML Form elements</a></li>
    	<ul>
    		<li>Standard elements</li>
    		<li>Popups from queries</li>
    		<li>Popups from arrays</li>
    		<li>Date/Calendar popups</li>
    	</ul>
    </ul>
    <li>Database abstraction, should the need ever arise to move away from mysql</li>
    <ul>
    	<li>Connect -> mysql_connect, and uses DEFINES from the config file, so you don't have to mess with passwords.  Also includes database selection as part of the DEFINE.</li>
    	<li>SelectDatabase -> mysql_select_db</li>
    	<li>Query -> mysql_query</li>
    	<li>FetchArray -> mysql_fetch_array</li>
    	<li>Other stuff</li>
    	<ul>
    		<li>GrabData - grab a single cell</li>
    		<li>GrabRow - grab a row, return in array hash</li>
    		<li>GrabColumn - grab a column, return in an array</li>
    	</ul>
    </ul>
    <li>Debugging - when the config file directive $DEBUG is false, these functions do not output, in case you forget to clean up debug.</li>
    <ul>
    	<li>PrintR - just like print_r, but formatted for display</li>
    	<li>PrintDebug - prints the debug log</li>
    </ul>
    <?
    
    include("examples/foot.php");
    ?>
    
    

    Debug Log:
    Memory Usage: 496.18k, Number of Queries: 0
    1. [0.0000]db.inc.php File included   include_once, line 21 home/bartniedner_com/core.bartniedner.com/htdocs/include/db.inc.php
    2. [0.0641]include End head.php   include, line 52 home/bartniedner_com/core.bartniedner.com/htdocs/examples/head.php
    3. [0.0006]include Begin foot.php   include, line 10 home/bartniedner_com/core.bartniedner.com/htdocs/examples/foot.php
    4. [0.0027]LoadJavascript Loaded http://core.bartniedner.com/include/javascript/ajax.js   LoadJavascript, line 854 home/bartniedner_com/core.bartniedner.com/htdocs/include/core_functions.php
    5. [0.0000]DrawTopPart outputFreeText - Source code
           DrawTopPart, line 205 home/bartniedner_com/core.bartniedner.com/htdocs/include/classes/output.php
      1. [0.0002]LoadJavascript Loaded http://core.bartniedner.com/include/javascript/jquery.js   LoadJavascript, line 854 home/bartniedner_com/core.bartniedner.com/htdocs/include/core_functions.php
      2. [0.0000]LoadJavascript Loaded http://core.bartniedner.com/include/javascript/core.js   LoadJavascript, line 854 home/bartniedner_com/core.bartniedner.com/htdocs/include/core_functions.php
      3. [0.0001]LoadJavascript Loaded http://core.bartniedner.com/include/javascript/firebug/firebug.js   LoadJavascript, line 854 home/bartniedner_com/core.bartniedner.com/htdocs/include/core_functions.php
      4. [0.0008]DrawBottomPart cached: /tmp/sourcecodeGx8tic   DrawBottomPart, line 378 home/bartniedner_com/core.bartniedner.com/htdocs/include/classes/output.php
      5. [0.0000]DrawBottomPart End
      outputFreeText - Source code   DrawBottomPart, line 381 home/bartniedner_com/core.bartniedner.com/htdocs/include/classes/output.php