| 49 | | if($queryresult){ |
| 50 | | while($therecord=$db->fetchArray($queryresult)){ |
| 51 | | if($therecord["displayname"]!="Base"){ |
| 52 | | echo $therecord["displayname"].": "; |
| 53 | | echo "v".$therecord["version"]."<br />"; |
| 54 | | } else |
| 55 | | echo "<span class=\"important\">v".$therecord["version"]."</span><br /><br />"; |
| 56 | | } |
| 57 | | } |
| 58 | | } |
| 59 | | |
| | 44 | class versions{ |
| | 45 | |
| | 46 | var $db; |
| | 47 | var $queryresult; |
| | 48 | |
| | 49 | function versions($db){ |
| | 50 | |
| | 51 | $this->db = $db; |
| | 52 | |
| | 53 | }//end function init |
| | 54 | |
| | 55 | function get(){ |
| | 56 | |
| | 57 | $querystatement = " |
| | 58 | SELECT |
| | 59 | `name`, |
| | 60 | `displayname`, |
| | 61 | `version` |
| | 62 | FROM |
| | 63 | `modules` |
| | 64 | ORDER BY |
| | 65 | `id`"; |
| | 66 | |
| | 67 | $this->queryresult = $this->db->query($querystatement); |
| | 68 | |
| | 69 | }//end function get |
| | 70 | |
| | 71 | |
| | 72 | function show(){ |
| | 73 | |
| | 74 | if(!$this->queryresult) |
| | 75 | return false; |
| | 76 | |
| | 77 | while($therecord = $this->db->fetchArray($this->queryresult)){ |
| | 78 | |
| | 79 | if($therecord["name"] != "base") |
| | 80 | echo formatVariable($therecord["displayname"]).": v".$therecord["version"]."<br />"; |
| | 81 | else |
| | 82 | echo '<p class="important">v'.$therecord["version"].'</p>'; |
| | 83 | |
| | 84 | }//endwhile |
| | 85 | |
| | 86 | return true; |
| | 87 | |
| | 88 | }//end function show |
| | 89 | |
| | 90 | }//end class |
| | 91 | |
| | 92 | $versions = new versions($db); |
| | 93 | $versions->get(); |
| | 94 | |
| 100 | | |
| 101 | | <h2>Source Code</h2> |
| 102 | | <ul> |
| 103 | | <li><strong>phpBMS</strong> - Commercial Open Source Business Management Web Appllication (<a href="http://www.kreotek.com">www.phpbms.org</a>)</li> |
| 104 | | <li><strong>fpdf</strong> - A PHP class which allows to generate PDF files with pure PHP (<a href="http://www.fpdf.org">www.fpdf.org</a>)</li> |
| 105 | | <li><strong>moo.fx</strong> - Super lightweight JavaScript effects library (<a href="http://moofx.mad4milk.net/">moofx.mad4milk.net</a>) </li> |
| 106 | | <li><strong>mochikit</strong> - A lightweight JavaScript library (<a href="http://mochichit.com/">mochikit.com</a>) - phpBMS utilizes modified parts mochikit code and it's programming structure.</li> |
| 107 | | <li><strong>parseCSV</strong> - An easy to use PHP class to read and write CSV data properly.(<a href="http://code.google.com/p/parsecsv-for-php/" >code.google.com/p/parsecsv-for-php/</a>)</li> |
| 108 | | </ul> |
| 109 | | <h2>Technologies</h2> |
| 110 | | <ul> |
| 111 | | <li><strong>php</strong> - A widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. (<a href="http://www.php.net">www.php.net</a>)</li> |
| 112 | | <li><strong>MySQL</strong> - An open source relational database management system (RDBMS) that uses Structured Query Language (SQL) (<a href="http://www.mysql.org">www.mysql.org</a>)</li> |
| 113 | | <li><strong>AJAX</strong> - Asynchronous Javascript And XML is a group of technologies that help browser based applications behave more like applications you run from your desktop.</li> |
| 114 | | </ul> |
| 116 | | <p align="right"> |
| 117 | | <input type="button" value="Back" class="Buttons" onclick="document.location='<?php echo APP_PATH; if(isset($_SESSION["userinfo"])) echo DEFAULT_LOAD_PAGE?>'" id="loginButton"/> |
| 118 | | </p> |
| | 145 | <h2>Source Code</h2> |
| | 146 | <ul> |
| | 147 | <li> |
| | 148 | <h3>phpBMS (<a href="http://www.phpbms.org">www.phpbms.org</a>)</h3> |
| | 149 | <p>Commercial Open Source Business Management Web Appllication</p> |
| | 150 | </li> |
| | 151 | |
| | 152 | <li> |
| | 153 | <h3>fpdf (<a href="http://www.fpdf.org">www.fpdf.org</a>)</h3> |
| | 154 | <p>A PHP class which allows to generate PDF files with pure PHP</p> |
| | 155 | </li> |
| | 156 | |
| | 157 | <li> |
| | 158 | <h3>moo.fx (<a href="http://moofx.mad4milk.net/">moofx.mad4milk.net</a>)</h3> |
| | 159 | <p>Super lightweight JavaScript effects library</p> |
| | 160 | </li> |
| | 161 | |
| | 162 | <li> |
| | 163 | <h3>mochikit (<a href="http://mochichit.com/">mochikit.com</a>)</h3> |
| | 164 | <p>A lightweight JavaScript library - phpBMS utilizes modified parts of mochikit code and it's programming structure for JavaScript as inspiration.</p> |
| | 165 | </li> |
| | 166 | |
| | 167 | <li> |
| | 168 | <h3>parseCSV (<a href="http://code.google.com/p/parsecsv-for-php/" >code.google.com/p/parsecsv-for-php/</a>)</h3> |
| | 169 | <p>An easy to use PHP class to read and write CSV data properly.</p> |
| | 170 | </li> |
| | 171 | </ul> |
| | 172 | |
| | 173 | <p align="right"><input type="button" value="Log In" class="Buttons" onclick="document.location='./'" id="loginButton" /></p> |
| | 174 | |