<?php $tmpl->place('menu'); ?> <div id="content" class="span-24 last"> <?php $tmpl->place('menuDocument'); ?> <h2>Purchase Order</h2> <div class="form-frame span-23 last"> <h3>Purchase Order</h3><br /> <input type="hidden" name="run_num" value="" id="run_num"/> <label for="doc_num">Document Number </label><input type="text" name="doc_num" value="" id="doc_num"/><br /> <label for="doc_date">Document Date </label><input type="text" name="doc_date" value="" id="doc_date" class="datepicker"/><br /> <label for="doc_type">Document Type </label> <select type="text" name="doc_type" value="" id="doc_type"><?php Document_type::findAllOption(); ?> </select><br /> <p> <table> <tr><td><label>Supplier 1 </label><input type="text" id="sup1"></input></td> <td><label>Contact Person </label><input type="text" id="con1"></input></td> <td><label>Tel No </label><input type="text" id="tel1"></input></td> </tr> <tr><td><label>Supplier 2 </label><input type="text" id="sup2"></input></td> <td><label>Contact Person </label><input type="text" id="con2"></input></td> <td><label>Tel No </label><input type="text" id="tel2"></input></td> </tr> <tr><td><label>Supplier 3 </label><input type="text" id="sup3"></input></td> <td><label>Contact Person </label><input type="text" id="con3"></input></td> <td><label>Tel No </label><input type="text" id="tel3"></input></td>
<?php include '../resources/init.php'; if (isset($_POST['type'])) { if ($_POST['type'] == "add") { try { $doctype = new Document_type(); $doctype->populate(); $doctype->store(); } catch (fExpectedException $e) { echo $e->printMessage(); } } }
?> <script type="text/javascript" src="./js/admin-doctype.js"></script> <?php $tmpl->place('menu'); ?> <div id="content" class="span-24 last"> <?php $tmpl->place('menuAdmin'); ?> <h2>Administration</h2><h3>Document Type</h3> <table> <thead><th>ID</th><th>Description</th><th>Icon</th></thead> <tbody> <?php try { $doctypes = Document_type::findAll(); foreach ($doctypes as $doctype) { printf("<tr class=\"doctypeRow\"><td id=\"dId\">%s</td><td id=\"dDesc\">%s</td></tr>", $doctype->prepareId(), $doctype->prepareDescription()); } } catch (fExpectedException $e) { echo $e->printMessage(); } ?> <tr id="newItem"> <td><input id="docID" value="Input Type"></input></td> <td><input id="docDesc" value="Input Description"></input></td> <td id="iconCell"> <ul id="icons" class="ui-widget ui-helper-clearfix"> <li id="add" title="Add" class="ui-state-default ui-corner-all"> <span class="ui-icon ui-icon-circle-plus"></span> </li>
* NOALYSS is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with NOALYSS; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ // Copyright Author Dany De Bontridder danydb@aevalys.eu /**\file * \brief this file respond to an ajax request to modify a type of document */ require_once NOALYSS_INCLUDE . '/class_document_type.php'; echo HtmlInput::title_box(_('Type de document'), 'change_doc_div'); $doc_type = new Document_type($cn, $dt_id); $doc_type->get(); ?> <form method="POST" id="cat_doc_f" onsubmit="cat_doc_change_record('cat_doc_f');"> <?php echo HtmlInput::request_to_hidden(array("ac", "gDossier", "dt_id")); ?> <table> <tr> <td> <?php echo _('Nom'); ?> </td> <td> <?php $name = new IText('dt_name', $doc_type->dt_value);