Added the content card div
This commit is contained in:
@@ -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";
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
@@ -117,7 +117,7 @@
|
||||
$esl = event_socket::create();
|
||||
if ($esl->is_connected()) {
|
||||
$result = event_socket::api('show application');
|
||||
|
||||
|
||||
$show_applications = explode("\n\n", $result);
|
||||
$raw_applications = explode("\n", $show_applications[0]);
|
||||
unset($result);
|
||||
@@ -590,6 +590,7 @@
|
||||
echo $text['description-dialplan-edit']."\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='50%' style='vertical-align: top;'>\n";
|
||||
@@ -1068,6 +1069,7 @@
|
||||
unset($details);
|
||||
|
||||
echo "</table>";
|
||||
echo "</div>\n";
|
||||
|
||||
} //end if results
|
||||
|
||||
|
||||
@@ -258,6 +258,7 @@
|
||||
echo $text['description-dialplan-edit']."\n";
|
||||
echo "<br />\n";
|
||||
|
||||
echo "<div class='card'>\n";
|
||||
echo " <textarea name='dialplan_xml' id='dialplan_xml' style='display: none;'>".$dialplan_xml."</textarea>";
|
||||
echo " <table cellpadding='0' cellspacing='0' border='0' style='width: 100%;'>\n";
|
||||
echo " <tr>\n";
|
||||
@@ -329,12 +330,14 @@
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
echo " </table>\n";
|
||||
echo " <div id='editor'></div>\n";
|
||||
echo " <br />\n";
|
||||
|
||||
echo " <input type='hidden' name='app_uuid' value='".escape($app_uuid ?? null)."'>\n";
|
||||
echo " <input type='hidden' name='dialplan_uuid' value='".escape($dialplan_uuid ?? null)."'>\n";
|
||||
echo " <input type='hidden' name='".$token['name']."' value='".$token['hash']."'>\n";
|
||||
echo " <div id='editor'></div>\n";
|
||||
echo "</div>\n";
|
||||
echo "<br />\n";
|
||||
|
||||
echo "<input type='hidden' name='app_uuid' value='".escape($app_uuid ?? null)."'>\n";
|
||||
echo "<input type='hidden' name='dialplan_uuid' value='".escape($dialplan_uuid ?? null)."'>\n";
|
||||
echo "<input type='hidden' name='".$token['name']."' value='".$token['hash']."'>\n";
|
||||
|
||||
echo "</form>\n";
|
||||
|
||||
|
||||
@@ -498,6 +498,7 @@
|
||||
}
|
||||
echo "\n<br /><br />\n";
|
||||
|
||||
|
||||
echo "<form id='form_list' method='post'>\n";
|
||||
echo "<input type='hidden' id='app_uuid' name='app_uuid' value='".escape($app_uuid)."'>\n";
|
||||
echo "<input type='hidden' id='action' name='action' value=''>\n";
|
||||
@@ -506,6 +507,7 @@
|
||||
echo "<input type='hidden' name='order_by' value=\"".escape($order_by)."\">\n";
|
||||
echo "<input type='hidden' name='order' value=\"".escape($order)."\">\n";
|
||||
|
||||
echo "<div class='card'>\n";
|
||||
echo "<table class='list'>\n";
|
||||
echo "<tr class='list-header'>\n";
|
||||
if (
|
||||
@@ -634,6 +636,7 @@
|
||||
}
|
||||
|
||||
echo "</table>\n";
|
||||
echo "</div>\n";
|
||||
echo "<br />\n";
|
||||
echo "<div align='center'>".$paging_controls."</div>\n";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user