CM97 - Add billing_plan
This commit is contained in:
@@ -153,6 +153,7 @@ $view .='<div class="content-block tab-content active">
|
||||
<div class="form responsive-width-100">
|
||||
<label for="">'.$contract_billinglabel.'</label>
|
||||
<select name="billing_plan">
|
||||
<option value="4" '.($contract['billing_plan']==4?' selected':'').'>'.($contract_billing4 ?? 'Onetime Upfront').'</option>
|
||||
<option value="0" '.($contract['billing_plan']==0?' selected':'').'>'.$contract_billing0.'</option>
|
||||
<option value="1" '.($contract['billing_plan']==1?' selected':'').'>'.$contract_billing1.'</option>
|
||||
<option value="2" '.($contract['billing_plan']==2?' selected':'').'>'.$contract_billing2.'</option>
|
||||
|
||||
@@ -57,10 +57,16 @@ if (isset($_GET['rowID'])) {
|
||||
$contents = file_get_contents($_FILES["fileToUpload"]["tmp_name"]);
|
||||
//firmwarename
|
||||
$firmware_name = pathinfo($_FILES["fileToUpload"]["name"], PATHINFO_FILENAME);
|
||||
$commitCode = compareCommitCodes($firmware_name,"");
|
||||
|
||||
//IF COMMITCODE IS EMPTY THEN RETURN HEX_FW
|
||||
$fw_name = ($commitCode != '' || !empty($commitCode)) ? $commitCode : $firmware_name;
|
||||
|
||||
//Filename
|
||||
$input_file = $target_dir . $firmware_name.'.HEX';
|
||||
//store firmware file
|
||||
file_put_contents($input_file, $contents);
|
||||
$_POST['version'] = $fw_name;
|
||||
|
||||
} else {
|
||||
$target_file = $target_dir . $firmware_file;
|
||||
@@ -123,11 +129,17 @@ if (isset($_GET['rowID'])) {
|
||||
$contents = file_get_contents($_FILES["fileToUpload"]["tmp_name"]);
|
||||
//firmwarename
|
||||
$firmware_name = pathinfo($_FILES["fileToUpload"]["name"], PATHINFO_FILENAME);
|
||||
$commitCode = compareCommitCodes($firmware_name,"");
|
||||
|
||||
//IF COMMITCODE IS EMPTY THEN RETURN HEX_FW
|
||||
$fw_name = ($commitCode != '' || !empty($commitCode)) ? $commitCode : $firmware_name;
|
||||
//Filename
|
||||
$input_file = $target_dir . $firmware_name.'.HEX';
|
||||
//store firmware file
|
||||
file_put_contents($input_file, $contents);
|
||||
|
||||
$_POST['version'] = $fw_name;
|
||||
|
||||
$firmware_name = $firmware_name.'.HEX';
|
||||
|
||||
} else {
|
||||
|
||||
@@ -85,6 +85,7 @@ $view .= '
|
||||
<label for="">'.$contract_billinglabel.'</label>
|
||||
<select name="billing_plan">
|
||||
<option value=""></option>
|
||||
<option value="4" '.($contract['billing_plan']==4?' selected':'').'>'.$contract_billing4.'</option>
|
||||
<option value="0" '.($contract['billing_plan']==0?' selected':'').'>'.$contract_billing0.'</option>
|
||||
<option value="1" '.($contract['billing_plan']==1?' selected':'').'>'.$contract_billing1.'</option>
|
||||
<option value="2" '.($contract['billing_plan']==2?' selected':'').'>'.$contract_billing2.'</option>
|
||||
|
||||
Reference in New Issue
Block a user