Added the content card div

This commit is contained in:
FusionPBX
2024-09-05 23:37:34 -06:00
committed by GitHub
parent cb6edd88ef
commit 2182ebd0b4
19 changed files with 102 additions and 55 deletions
+24 -22
View File
@@ -111,11 +111,11 @@
require_once "resources/footer.php";
return;
}
//remove the invalid characters from the extension name
$dialplan_name = str_replace(" ", "_", $dialplan_name);
$dialplan_name = str_replace("/", "", $dialplan_name);
//add the main dialplan include entry
$dialplan_uuid = uuid();
$array['dialplans'][0]['domain_uuid'] = $domain_uuid;
@@ -149,7 +149,7 @@
$array['dialplan_details'][1]['dialplan_detail_data'] = $condition_expression_2;
$array['dialplan_details'][1]['dialplan_detail_order'] = '2';
}
//add action 1
$dialplan_detail_uuid = uuid();
$array['dialplan_details'][2]['domain_uuid'] = $domain_uuid;
@@ -161,7 +161,7 @@
$array['dialplan_details'][2]['dialplan_detail_data'] = $action_data_1;
}
$array['dialplan_details'][2]['dialplan_detail_order'] = '3';
//add action 2
if (!empty($action_application_2)) {
$dialplan_detail_uuid = uuid();
@@ -175,18 +175,18 @@
}
$array['dialplan_details'][3]['dialplan_detail_order'] = '4';
}
//execute inserts
$database = new database;
$database->app_name = 'dialplans';
$database->app_uuid = '742714e5-8cdf-32fd-462c-cbe7e3d655db';
$database->save($array);
unset($array);
//clear the cache
$cache = new cache;
$cache->delete("dialplan:".$_SESSION["context"]);
//send a message and redirect the user
message::add($text['message-update']);
header("Location: ".PROJECT_PATH."/app/dialplans/dialplans.php");
@@ -249,8 +249,9 @@
echo $text['description-dialplan_manager-superadmin']."\n";
echo "<br /><br />\n";
echo "<div class='card'>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo "<td width='30%' class='vncellreq' valign='top' align='left' nowrap>\n";
echo " ".$text['label-name']."\n";
@@ -261,7 +262,7 @@
echo "\n";
echo "</td>\n";
echo "</tr>\n";
//echo "<tr>\n";
//echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
//echo " Continue\n";
@@ -286,7 +287,7 @@
//echo "Extension Continue in most cases this is false. default: false\n";
//echo "</td>\n";
//echo "</tr>\n";
echo "<tr>\n";
echo "<td class='vncellreq' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-condition_1']."\n";
@@ -316,7 +317,7 @@
obj.parentNode.removeChild(obj);
Replace_condition_field_1(this.objs);
}
function Replace_condition_field_1(obj){
obj[2].parentNode.insertBefore(obj[0],obj[2]);
obj[0].parentNode.removeChild(obj[1]);
@@ -374,13 +375,13 @@
echo " <div id='desc_condition_expression_1'></div>\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
echo " ".$text['label-condition_2']."\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <table border='0'>\n";
echo " <tr>\n";
//echo " <td align='left'>".$text['label-field']."</td>\n";
@@ -409,7 +410,7 @@
obj.parentNode.removeChild(obj);
Replace_condition_field_2(this.objs);
}
function Replace_condition_field_2(obj){
obj[2].parentNode.insertBefore(obj[0],obj[2]);
obj[0].parentNode.removeChild(obj[1]);
@@ -463,7 +464,7 @@
echo " <div id='desc_condition_expression_2'></div>\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
echo " ".$text['label-action_1']."\n";
@@ -472,10 +473,10 @@
echo $destination->select('dialplan', 'action_1', escape($action_1 ?? null));
echo "</td>\n";
echo "</tr>\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
echo " ".$text['label-action_2']."\n";
@@ -484,7 +485,7 @@
echo $destination->select('dialplan', 'action_2', escape($action_2 ?? null));
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo " <td class='vncell' valign='top' align='left' nowrap>\n";
echo " ".$text['label-context']."\n";
@@ -494,7 +495,7 @@
echo " <br />\n";
echo " </td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
echo " ".$text['label-order']."\n";
@@ -514,7 +515,7 @@
echo " <br />\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo " <td class='vncellreq' valign='top' align='left' nowrap>\n";
echo " ".$text['label-enabled']."\n";
@@ -527,7 +528,7 @@
echo " <br />\n";
echo " </td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo " <td class='vncell' valign='top' align='left' nowrap>\n";
echo " ".$text['label-description']."\n";
@@ -539,6 +540,7 @@
echo "</tr>\n";
echo "</table>";
echo "</div>\n";
echo "<br><br>";
if (!empty($action) && $action == "update") {
@@ -551,4 +553,4 @@
//include the footer
require_once "resources/footer.php";
?>
?>