* GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * http://www.gnu.org/copyleft/gpl.html * */ require_once('includes/common.php'); require_once('includes/SI_User.php'); checkLogin("admin"); require_once('includes/SI_RateStructure.php'); $rate_structure = new SI_RateStructure(); $rate_structures = $rate_structure->retrieveSet("ORDER BY name"); if($rate_structures === FALSE){ $error_msg .= "Error getting rate structures!\n"; debug_message($rate_structure->getLastError()); } $title = "Rate Structure Administration"; require('header.php') ?> <div class="tableContainer"> <a href="javascript:;" class="tCollapse" onclick="toggleGrid(this)"><img src="images/arrow_down.jpg" alt="Hide table" />Rate Structures</a><div> <div class="gridToolbar"> <a href="rate_structure.php?mode=add" style="background-image:url(images/new_invoice.png);">New Rate Structure</a> </div> <table border="0" cellspacing="0" cellpadding="0">
"></td> </tr> <tr> <td class="form_field_header_cell">Fax:</td> <td class="form_field_cell"><input name="fax" class="input_text" size="25" type="text" value="<?php echo $company->fax; ?> "></td> </tr> <tr> <td class="form_field_header_cell">Rate Structure:</td> <td class="form_field_cell"> <select name="rate_structure_id" class="input_text"> <option value="0">No Rate Structure</option> <?php echo SI_RateStructure::getSelectTags($company->rate_structure_id); ?> </select> </td> </tr> <tr> <td class="form_field_header_cell">Created On:</td> <td class="form_field_cell"><?php echo $company->created_ts ? date("D M jS, Y \\a\\t h:i:s A", $company->created_ts) : ""; ?> </td> </tr> <tr> <td class="form_field_header_cell">Last Updated:</td> <td class="form_field_cell"><?php echo $company->updated_ts ? date("D M jS, Y \\a\\t h:i:s A", $company->updated_ts) : "";
* 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 this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * http://www.gnu.org/copyleft/gpl.html * */ require_once('includes/common.php'); checkLogin('admin'); require_once('includes/SI_RateStructure.php'); require_once('includes/SI_ItemCode.php'); $title = ''; $rate_structure = new SI_RateStructure(); // Clean up price if(!empty($_POST['price'])){ $_POST['price'] = preg_replace('/[^0-9\.]/','', $_POST['price']); } // Clean up cost if(!empty($_POST['cost'])){ $_POST['cost'] = preg_replace('/[^0-9\.]/','', $_POST['cost']); } // Handle minor requests if($_REQUEST['mode'] == 'delete_item_code'){ if(empty($_REQUEST['id'])){ $error_msg .= "Error: No ID specified!\n";