From f05d9e652f80e52a8ce5988ac4231916c664bd4c Mon Sep 17 00:00:00 2001 From: mcrane Date: Sun, 31 May 2009 02:32:26 -0600 Subject: FreeSWITCH add order field for dialplan and public options, IVR add profile and sip uri, copy libspandsp.so.1 to libspandsp.so.2 so mod_fax will start, fix editarea path so the textarea tool will work. --- .../freeswitch/freeswitch_public_includes_edit.tmp | 103 ++++++++++++++------- 1 file changed, 68 insertions(+), 35 deletions(-) (limited to 'config/freeswitch/freeswitch_public_includes_edit.tmp') diff --git a/config/freeswitch/freeswitch_public_includes_edit.tmp b/config/freeswitch/freeswitch_public_includes_edit.tmp index 3e0644c3..e98dedeb 100644 --- a/config/freeswitch/freeswitch_public_includes_edit.tmp +++ b/config/freeswitch/freeswitch_public_includes_edit.tmp @@ -310,16 +310,36 @@ display_top_tabs(build_menu());
"; - //print_r ($a_public_includes); - //echo ""; - - //if ($savemsg) print_info_box($savemsg); - //if (file_exists($d_hostsdirty_path)): echo"

"; - //print_info_box_np("The FreeSWITCH recordings have been changed.
You must apply the changes in order for them to take effect."); - //echo"
"; - //endif; + //echo "

";
+		//print_r ($a_public_includes);
+		//echo "
"; + + //if ($savemsg) print_info_box($savemsg); + //if (file_exists($d_hostsdirty_path)): echo"

"; + //print_info_box_np("The FreeSWITCH recordings have been changed.
You must apply the changes in order for them to take effect."); + //echo"
"; + //endif; + + //create a temporary id for the array + $i = 0; + if (count($a_public_include_details) > 0) { + foreach ($a_public_include_details as $ent) { + $a_public_include_details[$i]['id'] = $i; + $i++; + } + } + //order the array + function cmp_number_public_details($a, $b) { + if ($a["fieldorder"] > $b["fieldorder"]) { + return 1; + } + else { + return 0; + } + } + if (count($a_public_include_details) > 0) { usort($a_public_include_details, "cmp_number_public_details"); } + ?> @@ -335,10 +355,11 @@ display_top_tabs(build_menu()); - - + + - +
TagTypeTagType Data + Order @@ -348,7 +369,7 @@ display_top_tabs(build_menu()); - 0) { @@ -357,20 +378,23 @@ display_top_tabs(build_menu()); if ($ent['tag'] == "condition" && $publicincludeid == $ent['publicincludeid']) { ?> - - - + @@ -388,20 +412,23 @@ display_top_tabs(build_menu()); if ($ent['tag'] == "action" && $publicincludeid == $ent['publicincludeid']) { ?> - - - + @@ -419,20 +446,23 @@ display_top_tabs(build_menu()); if ($ent['tag'] == "anti-action" && $publicincludeid == $ent['publicincludeid']) { ?> - - - + @@ -450,20 +480,23 @@ display_top_tabs(build_menu()); if ($ent['tag'] == "param" && $publicincludeid == $ent['publicincludeid']) { ?> - - - + @@ -475,7 +508,7 @@ display_top_tabs(build_menu()); } ?> - +
+ +   +   +   + - - + +
+ +   +   +   + - - + +
+ +   +   +   + - - + +
+ +   +   +   + - - + +
@@ -488,7 +521,7 @@ display_top_tabs(build_menu()); - +
-- cgit v1.2.3