<?php require_once '../../lib/defination.class.php'; include '../../lib/forms.class.php'; include '../../caleder.php'; $resellersId = $_SESSION[resellerid]; $reselltype = $_SESSION[resellertype]; $objtariff_info = new tariff_info(); $reselltypetable1 = ""; $param = $_GET['param']; // get tariff description / name by id $usertariff_infoData = $objtariff_info->retriveRariffsnamesById($param); if ($param) { ?> <form id="tariffPropertise" name="tariffPropertise" method="post" onsubmit="return saveFormData(tariffPropertise)" action="includes/model/tarif_properties_actions.php"> <table width="60%" border="0" align="center" cellpadding="3" cellspacing="0"> <tr> <td colspan="2"> </td> </tr> <tr> <td colspan="2" class="title">Tariff Propertise </td> </tr> <tr> <td width="39%">Tarrif name(max. 13 signs)</td> <td width="61%"><input type="text" name="txtTarifname" id="txtTarifname" value="<?php echo $usertariff_infoData[0]['description']; ?> " /></td>
<?php require_once '../../lib/defination.class.php'; include '../../lib/forms.class.php'; include '../../caleder.php'; $resellersId = $_SESSION[resellerid]; $reselltype = $_SESSION[resellertype]; $objtariff_info = new tariff_info(); $usertariff_infoData = $objtariff_info->retriveTariffListByIdresselersIdtariff($resellersId, $reselltype); $tariffList = count($usertariff_infoData); ?> <form id="orderForm1" name="orderForm1" method="post" onsubmit="return saveFormData(orderForm1)" action="includes/model/add_tarif_actions.php"> <div id="form-contents"> <table width="60%" border="0" align="center" cellpadding="3" cellspacing="0"> <tr> <td colspan="2"><div id="saveContent">Tariff</div></td> </tr> <tr> <td width="39%">Diled number</td> <td width="61%"><input type="text" name="txtDiledNumber" id="txtDiledNumber" /></td> </tr> <tr> <td>Tariff</td> <td><select name="selTariff" id="selTariff"> <option value="">- choose tariff -</option> <option value="">Base tariff</option> <?php for ($i = 0; $i < $tariffList; $i++) { ?>
<?php require_once '../../lib/defination.class.php'; include '../../lib/forms.class.php'; include '../../caleder.php'; $resellersId = $_SESSION[resellerid]; $reselltype = $_SESSION[resellertype]; $objtariff_info = new tariff_info(); $reselltypetable1 = ""; $param = $_GET['param']; // get tariff description / name by id $usertariff_infoData = $objtariff_info->retriveRariffsnamesById($param); $userBaseTariff_infoData = $objtariff_info->retriveSingleTariffById($param); if (isset($btn_submit)) { $txtTarifname = $_POST['txtTarifname']; $txtPrefix = $_POST['txtPrefix']; $txtVoiceRate = $_POST['txtVoiceRate']; $txtGperiod = $_POST['txtGperiod']; $txtMintime = $_POST['txtMintime']; $txtres = $_POST['txtres']; $RateMultiplier = $_POST['RateMultiplier']; $txtRateAddition = $_POST['txtRateAddition']; $from_date = $_POST['from_date']; $to_date = $_POST['to_date']; $from_hr = $_POST['from_hr']; $to_hr = $_POST['to_hr']; $to_hr1 = substr($to_hr, 0, 2); $to_hr2 = $to_hr1 . "00"; $idTariff = $_POST['idTariff']; $getData = "'','{$idTariff}','{$txtPrefix}','{$txtTarifname}','{$txtVoiceRate}','{$to_date}','{$from_date}','{$from_hr}','{$to_hr2}','{$txtGperiod}','{$txtMintime}','{$txtres}','{$RateMultiplier}','{$txtRateAddition}'"; //tarif insert operation