Misc: Fix datetimepicker on Time Conditions, CDR, Contact Times, etc.
Misc: Fix textarea height. Theme: CSS adjustments to correct misc bugs.
This commit is contained in:
parent
f0372faed1
commit
aeabb4a072
|
|
@ -129,7 +129,7 @@ else {
|
|||
echo "<tr>\n";
|
||||
echo "<td colspan='5' align='left'>\n";
|
||||
echo " <table width='100%' cellpadding='0' cellspacing='0'>\n";
|
||||
echo " <tr>\n";
|
||||
echo " <tr class='tr_link_void'>\n";
|
||||
echo " <td width='33.3%' nowrap> </td>\n";
|
||||
echo " <td width='33.3%' align='center' nowrap>$paging_controls</td>\n";
|
||||
echo " <td class='list_control_icons'>";
|
||||
|
|
|
|||
|
|
@ -676,13 +676,9 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
|||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' nowrap='nowrap' width='30%'>".$text['label-schedule']."</td>\n";
|
||||
echo "<td class='vtable' width='70%' align='left' style='white-space: nowrap;'>\n";
|
||||
echo " <div class='row'>\n";
|
||||
echo " <div class='col-sm-12'>\n";
|
||||
echo " <input type='text' class='formfld datetimepicker' style='min-width: 115px; width: 115px; max-width: 115px;' name='start_datetime' id='start_datetime' placeholder='".$text['label-from']."' value='".$start_datetime."'>\n";
|
||||
echo " <input type='text' class='formfld datetimepicker' style='min-width: 115px; width: 115px; max-width: 115px;' name='stop_datetime' id='stop_datetime' placeholder='".$text['label-to']."' value='".$stop_datetime."'>\n";
|
||||
echo " </div>\n";
|
||||
echo " </div>\n";
|
||||
echo "<td class='vtable' width='70%' align='left' style='position: relative; min-width: 275px;'>\n";
|
||||
echo " <input type='text' class='formfld datetimepicker' style='min-width: 115px; width: 115px; max-width: 115px;' name='start_datetime' id='start_datetime' placeholder='".$text['label-from']."' value='".$start_datetime."'>\n";
|
||||
echo " <input type='text' class='formfld datetimepicker' style='min-width: 115px; width: 115px; max-width: 115px;' name='stop_datetime' id='stop_datetime' placeholder='".$text['label-to']."' value='".$stop_datetime."'>\n";
|
||||
echo " <br>".$text['description-schedule'];
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
|
|
|||
|
|
@ -288,10 +288,10 @@ if (strlen($_GET["contact_uuid"]) > 0) {
|
|||
echo " ".$text['label-phone_type']."\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input type='checkbox' name='phone_type_voice' id='phone_type_voice' value='1' ".(($phone_type_voice) ? "checked='checked'" : null)."><label for='phone_type_voice'> ".$text['label-voice']."</label> \n";
|
||||
echo " <input type='checkbox' name='phone_type_fax' id='phone_type_fax' value='1' ".(($phone_type_fax) ? "checked='checked'" : null)."><label for='phone_type_fax'> ".$text['label-fax']."</label> \n";
|
||||
echo " <input type='checkbox' name='phone_type_video' id='phone_type_video' value='1' ".(($phone_type_video) ? "checked='checked'" : null)."><label for='phone_type_video'> ".$text['label-video']."</label> \n";
|
||||
echo " <input type='checkbox' name='phone_type_text' id='phone_type_text' value='1' ".(($phone_type_text) ? "checked='checked'" : null)."><label for='phone_type_text'> ".$text['label-text']."</label>\n";
|
||||
echo " <label><input type='checkbox' name='phone_type_voice' id='phone_type_voice' value='1' ".(($phone_type_voice) ? "checked='checked'" : null)."> ".$text['label-voice']."</label> \n";
|
||||
echo " <label><input type='checkbox' name='phone_type_fax' id='phone_type_fax' value='1' ".(($phone_type_fax) ? "checked='checked'" : null)."> ".$text['label-fax']."</label> \n";
|
||||
echo " <label><input type='checkbox' name='phone_type_video' id='phone_type_video' value='1' ".(($phone_type_video) ? "checked='checked'" : null)."> ".$text['label-video']."</label> \n";
|
||||
echo " <label><input type='checkbox' name='phone_type_text' id='phone_type_text' value='1' ".(($phone_type_text) ? "checked='checked'" : null)."> ".$text['label-text']."</label>\n";
|
||||
echo "<br />\n";
|
||||
echo $text['description-phone_type']."\n";
|
||||
echo "</td>\n";
|
||||
|
|
|
|||
|
|
@ -199,10 +199,8 @@ else {
|
|||
echo "<td width='30%' class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
||||
echo " ".$text['label-time_start']."\n";
|
||||
echo "</td>\n";
|
||||
echo "<td width='70%' class='vtable' align='left'>\n";
|
||||
echo " <div class='row'><div class='col-sm-12'>\n";
|
||||
echo " <input class='formfld datetimepicker' type='text' name='time_start' id='time_start' style='min-width: 135px; width: 135px;' value='".$time_start."'>\n";
|
||||
echo " </div></div>\n";
|
||||
echo "<td width='70%' class='vtable' style='position: relative;' align='left'>\n";
|
||||
echo " <input class='formfld datetimepicker' type='text' name='time_start' id='time_start' style='min-width: 135px; width: 135px;' value='".$time_start."'>\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
|
|
@ -210,10 +208,8 @@ else {
|
|||
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
||||
echo " ".$text['label-time_stop']."\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <div class='row'><div class='col-sm-12'>\n";
|
||||
echo " <input class='formfld datetimepicker' type='text' name='time_stop' id='time_stop' style='min-width: 135px; width: 135px;' value='".$time_stop."'>\n";
|
||||
echo " </div></div>\n";
|
||||
echo "<td class='vtable' style='position: relative;' align='left'>\n";
|
||||
echo " <input class='formfld datetimepicker' type='text' name='time_stop' id='time_stop' style='min-width: 135px; width: 135px;' value='".$time_stop."'>\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
|
|
|
|||
|
|
@ -717,32 +717,31 @@ $destination = new destinations;
|
|||
?>
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
function type_onchange(dialplan_detail_type) {
|
||||
var field_value = document.getElementById(dialplan_detail_type).value;
|
||||
if (dialplan_detail_type == "condition_field_1") {
|
||||
if (field_value == "destination_number") {
|
||||
document.getElementById("desc_condition_expression_1").innerHTML = "expression: 5551231234";
|
||||
var field_value = document.getElementById(dialplan_detail_type).value;
|
||||
if (dialplan_detail_type == "condition_field_1") {
|
||||
if (field_value == "destination_number") {
|
||||
document.getElementById("desc_condition_expression_1").innerHTML = "expression: 5551231234";
|
||||
}
|
||||
else if (field_value == "zzz") {
|
||||
document.getElementById("desc_condition_expression_1").innerHTML = "";
|
||||
}
|
||||
else {
|
||||
document.getElementById("desc_condition_expression_1").innerHTML = "";
|
||||
}
|
||||
}
|
||||
else if (field_value == "zzz") {
|
||||
document.getElementById("desc_condition_expression_1").innerHTML = "";
|
||||
}
|
||||
else {
|
||||
document.getElementById("desc_condition_expression_1").innerHTML = "";
|
||||
if (dialplan_detail_type == "condition_field_2") {
|
||||
if (field_value == "destination_number") {
|
||||
document.getElementById("desc_condition_expression_2").innerHTML = "expression: 5551231234";
|
||||
}
|
||||
else if (field_value == "zzz") {
|
||||
document.getElementById("desc_condition_expression_2").innerHTML = "";
|
||||
}
|
||||
else {
|
||||
document.getElementById("desc_condition_expression_2").innerHTML = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
if (dialplan_detail_type == "condition_field_2") {
|
||||
if (field_value == "destination_number") {
|
||||
document.getElementById("desc_condition_expression_2").innerHTML = "expression: 5551231234";
|
||||
}
|
||||
else if (field_value == "zzz") {
|
||||
document.getElementById("desc_condition_expression_2").innerHTML = "";
|
||||
}
|
||||
else {
|
||||
document.getElementById("desc_condition_expression_2").innerHTML = "";
|
||||
}
|
||||
}
|
||||
-->
|
||||
</script>
|
||||
|
||||
<?php
|
||||
|
|
|
|||
|
|
@ -73,16 +73,16 @@ require_once "resources/header.php";
|
|||
|
||||
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0'>\n";
|
||||
echo " <tr>\n";
|
||||
echo " <td align=\"left\" valign='middle' width='100%' style='padding-right: 15px;' nowrap>\n";
|
||||
echo " <td align='left' valign='top' width='100%' style='padding-right: 15px;' nowrap>\n";
|
||||
echo " <b>".$text['label-log-viewer']."</b><br />\n";
|
||||
echo " </td>\n";
|
||||
echo " <td align='right' valign='middle' nowrap>\n";
|
||||
echo " <form action=\"log_viewer.php\" method=\"POST\">\n";
|
||||
echo " <label for='filter' style='margin-right: 20px;'>".$text['label-filter']." <input type=\"text\" class=\"formfld\" style=\"width: 150px; text-align: center;\" name=\"filter\" value=\"".$_POST['filter']."\" onclick=\"this.select();\"></label>";
|
||||
echo " <label for='ln' style='margin-right: 20px;'><input type='checkbox' name='ln' id='ln' value='1' ".(($_POST['ln'] == 1) ? 'checked' : null)."> ".$text['label-line-num']."</label>";
|
||||
echo " <label for='ord' style='margin-right: 20px;'><input type='checkbox' name='ord' id='ord' value='desc' ".(($_POST['ord'] == 'desc') ? 'checked' : null)."> ".$text['label-sort']."</label>";
|
||||
echo " Display <input type=\"text\" class=\"formfld\" style=\"width: 50px; text-align: center;\" name=\"fs\" value=\"".$_POST['fs']."\" onclick=\"this.select();\"> ".$text['label-kb']."";
|
||||
echo " <input type=\"submit\" class=\"btn\" style=\"margin-left: 20px;\" name=\"submit\" value=\"".$text['button-reload']."\">";
|
||||
echo " <form action='log_viewer.php' method='POST'>\n";
|
||||
echo " ".$text['label-filter']." <input type='text' name='filter' class='formfld' style='width: 150px; text-align: center; margin-right: 20px;' value=\"".$_POST['filter']."\" onclick='this.select();'>";
|
||||
echo " <label style='margin-right: 20px; margin-top: 4px;'><input type='checkbox' name='ln' id='ln' value='1' ".(($_POST['ln'] == 1) ? 'checked' : null)."> ".$text['label-line-num']."</label>";
|
||||
echo " <label style='margin-right: 20px; margin-top: 4px;'><input type='checkbox' name='ord' id='ord' value='desc' ".(($_POST['ord'] == 'desc') ? 'checked' : null)."> ".$text['label-sort']."</label>";
|
||||
echo " Display <input type='text' class='formfld' style='width: 50px; text-align: center;' name='fs' value=\"".$_POST['fs']."\" onclick='this.select();'> ".$text['label-kb']."";
|
||||
echo " <input type='submit' class='btn' style='margin-left: 20px;' name='submit' value=\"".$text['button-reload']."\">";
|
||||
if (permission_exists('log_download')) {
|
||||
echo " <input type='button' class='btn' value='".$text['button-download']."' onclick=\"document.location.href='log_viewer.php?a=download&t=logs';\" />\n";
|
||||
}
|
||||
|
|
@ -161,12 +161,12 @@ if (permission_exists('log_view')) {
|
|||
}
|
||||
if (strlen($_REQUEST['filter']) > 0){
|
||||
$uuid_filter = $_REQUEST['filter'];
|
||||
echo " <td style=\"text-align: left; color: #FFFFFF;\">".$text['description-filter']." ".$uuid_filter."</td>";
|
||||
echo " <td style='text-align: left; color: #FFFFFF;'>".$text['description-filter']." ".$uuid_filter."</td>";
|
||||
}
|
||||
}
|
||||
|
||||
//echo "Log File Size: " . $file_size . " bytes. <br />";
|
||||
echo " <td style=\"text-align: right;color: #FFFFFF;\">".$text['label-displaying']." ".number_format($user_filesize,0,'.',',')." of ".number_format($file_size,0,'.',',')." ".$text['label-bytes'].". </td>";
|
||||
echo " <td style='text-align: right;color: #FFFFFF;'>".$text['label-displaying']." ".number_format($user_filesize,0,'.',',')." of ".number_format($file_size,0,'.',',')." ".$text['label-bytes'].". </td>";
|
||||
echo " </tr>";
|
||||
echo " </table>";
|
||||
echo " <hr size='1' style='color: #fff;'>";
|
||||
|
|
|
|||
|
|
@ -562,7 +562,7 @@ require_once "resources/header.php";
|
|||
condition_id = Math.floor((Math.random() * 1000) + 1);
|
||||
html = "<table cellpadding='0' cellspacing='0' border='0' style='margin-top: 3px;' width='100%'>";
|
||||
html += " <tr>";
|
||||
html += " <td style='vertical-align: middle; white-space: nowrap;' width='100%' nowrap>";
|
||||
html += " <td style='vertical-align: middle; min-width: 390px;' width='100%'>";
|
||||
html += " <select class='formfld' style='width: 120px;' name='variable[" + type + "][" + group_id + "][" + condition_id + "]' id='variable_" + group_id + "_" + condition_id + "' onchange=\"load_value_fields(" + group_id + ", " + condition_id + ", this.options[this.selectedIndex].value);\">";
|
||||
html += " <option value=''></option>";
|
||||
<?php
|
||||
|
|
@ -728,24 +728,27 @@ require_once "resources/header.php";
|
|||
}
|
||||
|
||||
function change_to_input(obj) {
|
||||
tb = document.createElement('INPUT');
|
||||
tb = document.createElement('input');
|
||||
tb.type = 'text';
|
||||
tb.name = obj.name;
|
||||
tb.id = obj.id;
|
||||
tb.className = 'formfld';
|
||||
tb.setAttribute('style', 'width: 120px; min-width: 120px; max-width: 120px; text-align: center;');
|
||||
tb.addClass('datetimepicker');
|
||||
tb_id = obj.id;
|
||||
tb.className = 'formfld datetimepicker';
|
||||
tb.setAttribute('style', 'position: relative; width: 120px; min-width: 120px; max-width: 120px; text-align: center;');
|
||||
obj.parentNode.insertBefore(tb, obj);
|
||||
obj.parentNode.removeChild(obj);
|
||||
$('#'+tb_id).wrap("<div style='position: relative; display: inline;'></div>"); //add parent div
|
||||
$('#'+tb_id).datetimepicker({ format: 'YYYY-MM-DD HH:mm', showTodayButton: true, showClear: true, showClose: true, });
|
||||
}
|
||||
|
||||
function change_to_select(obj) {
|
||||
sb = document.createElement('SELECT');
|
||||
sb = document.createElement('select');
|
||||
sb.name = obj.name;
|
||||
sb.id = obj.id;
|
||||
sb.removeClass('datetimepicker');
|
||||
tb_id = obj.id;
|
||||
sb.className = 'formfld';
|
||||
sb.setAttribute('style', 'width: 120px; min-width: 120px; max-width: 120px;');
|
||||
$('#'+tb_id).unwrap(); //remove parent div
|
||||
obj.parentNode.insertBefore(sb, obj);
|
||||
obj.parentNode.removeChild(obj);
|
||||
}
|
||||
|
|
@ -848,25 +851,27 @@ function add_custom_condition($destination, $group_id, $dialplan_action = '') {
|
|||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <table border='0' cellpadding='0' cellspacing='0' style='margin: -2px;'>\n";
|
||||
echo " <tr>\n";
|
||||
echo " <td class='vtable' style='width: 108px;'>".$text['label-condition']."</td>\n";
|
||||
echo " <td class='vtable' style='width: 125px;'>".$text['label-condition_value']."</td>\n";
|
||||
echo " <td class='vtable' style='width: 114px;'>".$text['label-condition_range']."</td>\n";
|
||||
echo " <td style='text-align: right;'><a href='javascript:void(0);' onclick=\"add_condition(".$group_id.",'custom');\">".$v_link_label_add."</a></td>\n";
|
||||
echo " <td class='vtable' style='width: 120px;'>".$text['label-condition']."</td>\n";
|
||||
echo " <td class='vtable' style='width: 135px;'>".$text['label-condition_value']."</td>\n";
|
||||
echo " <td class='vtable' style='width: 120px;'>".$text['label-condition_range']."</td>\n";
|
||||
echo " <td style='width: 1px; text-align: right;'><a href='javascript:void(0);' onclick=\"add_condition(".$group_id.",'custom');\">".$v_link_label_add."</a></td>\n";
|
||||
echo " </tr>\n";
|
||||
echo " <tr>";
|
||||
echo " <td colspan='4' style='white-space: nowrap;' id='group_".$group_id."'></td>";
|
||||
echo " </tr>";
|
||||
echo " </tr>";
|
||||
echo " <td colspan='2' class='vtable' style='width: 108px;'>".$text['label-destination']."</td>\n";
|
||||
//echo " <td colspan='2' class='vtable'>".$text['label-group']."</td>\n";
|
||||
echo " <td colspan='4' style='min-width: 390px;' id='group_".$group_id."'></td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td colspan='2' style='padding-top: 3px; padding-right: 3px; white-space: nowrap;'>";
|
||||
echo " <td colspan='4' style='padding-top: 10px; white-space: nowrap;'>";
|
||||
echo " <table border='0' cellpadding='0' cellspacing='0' width='100%'>\n";
|
||||
echo " <tr>\n";
|
||||
echo " <td>\n";
|
||||
//$destination = new destinations;
|
||||
echo $destination->select('dialplan', 'dialplan_action['.$group_id.']', $dialplan_action);
|
||||
echo " </td>";
|
||||
echo " <td colspan='2' style='padding-top: 3px;'><input class='formfld' type='text' name='group_".$group_id."' id='group_".$group_id."' maxlength='255' value=\"".$group_id."\"></td>\n";
|
||||
echo " </tr>";
|
||||
echo " </td>\n";
|
||||
echo " <td width='100%'><input class='formfld' style='margin-left: 5px;' type='text' name='group_".$group_id."' id='group_".$group_id."' maxlength='255' value=\"".$group_id."\"></td>\n";
|
||||
echo " </tr>";
|
||||
echo " </table>\n";
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
echo " </table>";
|
||||
echo " <br />";
|
||||
echo " ".$text['description-settings'];
|
||||
|
|
@ -950,17 +955,17 @@ if ($action == 'update') {
|
|||
else {
|
||||
$label_preset_name = ucwords(str_replace(array("-", "_"), " ", $preset_name));
|
||||
}
|
||||
echo "<input type='checkbox' name='preset[".$preset_number."]' id='preset_".$preset_number."' value='".$preset_group_id."' onclick=\"alternate_destination_required();\" ".$checked."> <a href='javascript:void(0);' onclick=\"$('#preset_fields_".$preset_group_id."').slideToggle(400);\">".$label_preset_name."</a><br>\n";
|
||||
echo "<label><input type='checkbox' name='preset[".$preset_number."]' id='preset_".$preset_number."' value='".$preset_group_id."' onclick=\"alternate_destination_required();\" ".$checked."> <a href='javascript:void(0);' onclick=\"$('#preset_fields_".$preset_group_id."').slideToggle(400);\">".$label_preset_name."</a></label><br>\n";
|
||||
echo "<div id='preset_fields_".$preset_group_id."' style='display: none; margin: 4px 0px 0px 20px;'>";
|
||||
echo " <table border='0' cellpadding='2' cellspacing='0' style='margin: -2px; margin-bottom: 10px;'>\n";
|
||||
echo " <tr>\n";
|
||||
echo " <td class='vtable' style='width: 108px;'>".$text['label-condition']."</td>\n";
|
||||
echo " <td class='vtable' style='width: 125px;'>".$text['label-condition_value']."</td>\n";
|
||||
echo " <td class='vtable' style='width: 114px;'>".$text['label-condition_range']."</td>\n";
|
||||
echo " <td style='text-align: right;'><a href='javascript:void(0);' onclick=\"add_condition(".$preset_group_id.",'preset');\">".$v_link_label_add."</a></td>\n";
|
||||
echo " <td class='vtable' style='width: 120px;'>".$text['label-condition']."</td>\n";
|
||||
echo " <td class='vtable' style='width: 135px;'>".$text['label-condition_value']."</td>\n";
|
||||
echo " <td class='vtable' style='width: 120px;'>".$text['label-condition_range']."</td>\n";
|
||||
echo " <td style='width: 1px; text-align: right;'><a href='javascript:void(0);' onclick=\"add_condition(".$preset_group_id.",'preset');\">".$v_link_label_add."</a></td>\n";
|
||||
echo " </tr>\n";
|
||||
echo " <tr>";
|
||||
echo " <td colspan='4' style='white-space: nowrap;' id='group_".$preset_group_id."'></td>";
|
||||
echo " <td colspan='4' style='min-width: 390px;' id='group_".$preset_group_id."'></td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td colspan='4' style='padding-top: 10px;'>";
|
||||
|
|
|
|||
|
|
@ -233,13 +233,9 @@ else {
|
|||
echo " <td class='vncell' valign='top' nowrap='nowrap'>\n";
|
||||
echo " ".$text['label-start_range']."\n";
|
||||
echo " </td>\n";
|
||||
echo " <td class='vtable' align='left' style='white-space: nowrap;'>\n";
|
||||
echo " <div class='row'>\n";
|
||||
echo " <div class='col-sm-12'>\n";
|
||||
echo " <input type='text' class='formfld datetimepicker' style='min-width: 115px; width: 115px;' name='start_stamp_begin' placeholder='".$text['label-from']."' value='$start_stamp_begin'>\n";
|
||||
echo " <input type='text' class='formfld datetimepicker' style='min-width: 115px; width: 115px;' name='start_stamp_end' placeholder='".$text['label-to']."' value='$start_stamp_end'>\n";
|
||||
echo " </div>\n";
|
||||
echo " </div>\n";
|
||||
echo " <td class='vtable' align='left' style='position: relative; min-width: 250px;'>\n";
|
||||
echo " <input type='text' class='formfld datetimepicker' style='min-width: 115px; width: 115px;' name='start_stamp_begin' placeholder='".$text['label-from']."' value='$start_stamp_begin'>\n";
|
||||
echo " <input type='text' class='formfld datetimepicker' style='min-width: 115px; width: 115px;' name='start_stamp_end' placeholder='".$text['label-to']."' value='$start_stamp_end'>\n";
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
echo " <tr>\n";
|
||||
|
|
|
|||
|
|
@ -229,10 +229,8 @@ require_once "resources/require.php";
|
|||
echo " <td class='vncell' valign='top' nowrap='nowrap' width='30%'>\n";
|
||||
echo " ".$text['label-start_date_time']."\n";
|
||||
echo " </td>\n";
|
||||
echo " <td class='vtable' width='70%' align='left' style='white-space: nowrap;'>\n";
|
||||
echo " <div class='row'><div class='col-sm-12'>\n";
|
||||
echo " <input type='text' class='formfld datetimepicker' style='min-width: 115px; width: 115px; max-width: 115px;' name='start_stamp_begin' id='start_stamp_begin' placeholder='".$text['label-from']."' value='$start_stamp_begin'>\n";
|
||||
echo " </div></div>\n";
|
||||
echo " <td class='vtable' width='70%' align='left' style='position: relative; min-width: 135px;'>\n";
|
||||
echo " <input type='text' class='formfld datetimepicker' style='min-width: 115px; width: 115px; max-width: 115px;' name='start_stamp_begin' id='start_stamp_begin' placeholder='".$text['label-from']."' value='$start_stamp_begin'>\n";
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
echo " </table>\n";
|
||||
|
|
@ -244,10 +242,8 @@ require_once "resources/require.php";
|
|||
echo " <td class='vncell' valign='top' nowrap='nowrap' width='30%'>\n";
|
||||
echo " ".$text['label-end_date_time']."\n";
|
||||
echo " </td>\n";
|
||||
echo " <td class='vtable' width='70%' align='left' style='white-space: nowrap;'>\n";
|
||||
echo " <div class='row'><div class='col-sm-12'>\n";
|
||||
echo " <input type='text' class='formfld datetimepicker' style='min-width: 115px; width: 115px; max-width: 115px;' name='start_stamp_end' id='start_stamp_end' placeholder='".$text['label-to']."' value='$start_stamp_end'>\n";
|
||||
echo " </div></div>\n";
|
||||
echo " <td class='vtable' width='70%' align='left' style='position: relative; min-width: 135px;'>\n";
|
||||
echo " <input type='text' class='formfld datetimepicker' style='min-width: 115px; width: 115px; max-width: 115px;' name='start_stamp_end' id='start_stamp_end' placeholder='".$text['label-to']."' value='$start_stamp_end'>\n";
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
echo " </table>\n";
|
||||
|
|
|
|||
|
|
@ -143,8 +143,7 @@
|
|||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
if($db_create=='1') { $checked = "checked='checked'"; } else { $checked = ''; }
|
||||
echo " <input type='checkbox' name='db_create' value='1' $checked /> ";
|
||||
echo "Create the database\n";
|
||||
echo " <label><input type='checkbox' name='db_create' value='1' $checked /> Create the database</label>\n";
|
||||
echo "<br />\n";
|
||||
echo "Choose whether to create the database\n";
|
||||
echo "</td>\n";
|
||||
|
|
@ -240,8 +239,7 @@
|
|||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
if($db_create=='1') { $checked = "checked='checked'"; } else { $checked = ''; }
|
||||
echo " <input type='checkbox' name='db_create' value='1' $checked /> ";
|
||||
echo "Create the database\n";
|
||||
echo " <label><input type='checkbox' name='db_create' value='1' $checked /> Create the database</label>\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
|
|
|
|||
|
|
@ -149,10 +149,7 @@ if (permission_exists("upgrade_source") && !is_dir("/usr/share/examples/fusionpb
|
|||
echo " ".$text['label-upgrade_source'];
|
||||
echo " </td>\n";
|
||||
echo " <td width='70%' class='vtable' style='height: 50px;'>\n";
|
||||
echo " <label for='do_source'>";
|
||||
echo " <input type='checkbox' class='formfld' name='do[source]' id='do_source' value='1'>";
|
||||
echo " ".$text['description-upgrade_source'];
|
||||
echo " </label>\n";
|
||||
echo " <label for='do_source'><input type='checkbox' name='do[source]' id='do_source' value='1'> ".$text['description-upgrade_source']."</label>\n";
|
||||
echo " </td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "</table>\n";
|
||||
|
|
@ -165,10 +162,7 @@ if (permission_exists("upgrade_schema")) {
|
|||
echo " ".$text['label-upgrade_schema'];
|
||||
echo " </td>\n";
|
||||
echo " <td width='70%' class='vtable' style='height: 50px;'>\n";
|
||||
echo " <label for='do_schema'>";
|
||||
echo " <input type='checkbox' class='formfld' name='do[schema]' id='do_schema' value='1' onchange=\"$('#do_data_types').prop('checked', false); $('#tr_data_types').slideToggle('fast');\">";
|
||||
echo " ".$text['description-upgrade_schema'];
|
||||
echo " </label>\n";
|
||||
echo " <label for='do_schema'><input type='checkbox' name='do[schema]' id='do_schema' value='1' onchange=\"$('#do_data_types').prop('checked', false); $('#tr_data_types').slideToggle('fast');\"> ".$text['description-upgrade_schema']."</label>\n";
|
||||
echo " </td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "</table>\n";
|
||||
|
|
@ -180,10 +174,7 @@ if (permission_exists("upgrade_schema")) {
|
|||
echo " ".$text['label-upgrade_data_types'];
|
||||
echo " </td>\n";
|
||||
echo " <td width='70%' class='vtable' style='height: 50px;'>\n";
|
||||
echo " <label for='do_data_types'>";
|
||||
echo " <input type='checkbox' class='formfld' name='do[data_types]' id='do_data_types' value='true'>";
|
||||
echo " ".$text['description-upgrade_data_types'];
|
||||
echo " </label>\n";
|
||||
echo " <label for='do_data_types'><input type='checkbox' name='do[data_types]' id='do_data_types' value='true'> ".$text['description-upgrade_data_types']."</label>\n";
|
||||
echo " </td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "</table>\n";
|
||||
|
|
@ -197,10 +188,7 @@ if (permission_exists("upgrade_apps")) {
|
|||
echo " ".$text['label-upgrade_apps'];
|
||||
echo " </td>\n";
|
||||
echo " <td width='70%' class='vtable' style='height: 50px;'>\n";
|
||||
echo " <label for='do_apps'>";
|
||||
echo " <input type='checkbox' class='formfld' name='do[apps]' id='do_apps' value='1'>";
|
||||
echo " ".$text['description-upgrade_apps'];
|
||||
echo " </label>\n";
|
||||
echo " <label for='do_apps'><input type='checkbox' name='do[apps]' id='do_apps' value='1'> ".$text['description-upgrade_apps']."</label>\n";
|
||||
echo " </td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "</table>\n";
|
||||
|
|
@ -213,22 +201,20 @@ if (permission_exists("menu_restore")) {
|
|||
echo " ".$text['label-upgrade_menu'];
|
||||
echo " </td>\n";
|
||||
echo " <td width='70%' class='vtable' style='height: 50px;'>\n";
|
||||
echo " <table cellpadding='0' cellspacing='0' border='0'>";
|
||||
echo " <tr><td>";
|
||||
echo " <input type='checkbox' class='formfld' name='do[menu]' id='do_menu' value='1' onchange=\"$('#td_sel_menu').fadeToggle('fast');\">";
|
||||
echo " </td><td id='td_sel_menu' style='display: none; padding: 0px 3px 0px 8px;'>";
|
||||
echo " <select name='sel_menu' id='sel_menu' class='formfld'>\n";
|
||||
$sql = "select * from v_menus ";
|
||||
$prep_statement = $db->prepare(check_sql($sql));
|
||||
$prep_statement->execute();
|
||||
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
||||
foreach ($result as &$row) {
|
||||
echo "<option value='".$row["menu_uuid"]."|".$row["menu_language"]."'>".$row["menu_name"]."</option>\n";
|
||||
}
|
||||
unset ($sql, $result, $prep_statement);
|
||||
echo " </select>\n";
|
||||
echo " </td><td class='vtable' style='border: none; padding: 3px;'><label for='do_menu'>".$text['description-upgrade_menu']."</label></td></tr>";
|
||||
echo " </table>";
|
||||
echo " <label for='do_menu'>";
|
||||
echo "<input type='checkbox' name='do[menu]' id='do_menu' value='1' onchange=\"$('#sel_menu').fadeToggle('fast');\">";
|
||||
echo "<select name='sel_menu' id='sel_menu' class='formfld' style='display: none; vertical-align: middle; margin-left: 5px;'>";
|
||||
$sql = "select * from v_menus ";
|
||||
$prep_statement = $db->prepare(check_sql($sql));
|
||||
$prep_statement->execute();
|
||||
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
||||
foreach ($result as &$row) {
|
||||
echo "<option value='".$row["menu_uuid"]."|".$row["menu_language"]."'>".$row["menu_name"]."</option>";
|
||||
}
|
||||
unset ($sql, $result, $prep_statement);
|
||||
echo "</select>";
|
||||
echo " ".$text['description-upgrade_menu'];
|
||||
echo "</label>\n";
|
||||
echo " </td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "</table>\n";
|
||||
|
|
@ -241,10 +227,7 @@ if (permission_exists("group_edit")) {
|
|||
echo " ".$text['label-upgrade_permissions'];
|
||||
echo " </td>\n";
|
||||
echo " <td width='70%' class='vtable' style='height: 50px;'>\n";
|
||||
echo " <label for='do_permissions'>";
|
||||
echo " <input type='checkbox' class='formfld' name='do[permissions]' id='do_permissions' value='1'>";
|
||||
echo " ".$text['description-upgrade_permissions'];
|
||||
echo " </label>\n";
|
||||
echo " <label for='do_permissions'><input type='checkbox' name='do[permissions]' id='do_permissions' value='1'> ".$text['description-upgrade_permissions']."</label>\n";
|
||||
echo " </td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "</table>\n";
|
||||
|
|
|
|||
|
|
@ -382,17 +382,17 @@ require_once "resources/require.php";
|
|||
|
||||
echo "<table class='tr_hover' width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo " <tr>\n";
|
||||
echo " <th style='text-align: center; padding: 0px;'><input type='checkbox' id='check_toggle_".$app_index."' onclick=\"check_toggle('".$app_index."', this.checked);\"></th>\n";
|
||||
echo " <th width='33%'>".$text['label-permission_permissions']."</th>\n";
|
||||
echo " <th width='66%'>".$text['label-permission_description']."</th>\n";
|
||||
echo " <th style='text-align: center; padding: 0 7px;'><input type='checkbox' id='check_toggle_".$app_index."' onclick=\"check_toggle('".$app_index."', this.checked);\"></th>\n";
|
||||
echo " <th width='30%'>".$text['label-permission_permissions']."</th>\n";
|
||||
echo " <th width='70%'>".$text['label-permission_description']."</th>\n";
|
||||
echo " <tr>\n";
|
||||
|
||||
foreach ($app['permissions'] as $permission_index => $row) {
|
||||
$checked = ($permissions_db_checklist[$row['name']] == "true") ? "checked='checked'" : null;
|
||||
echo "<tr id='permission_".$row['name']."'>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."' style='text-align: center; padding: 3px 0px 0px 0px;'><input type='checkbox' name='permissions_form[]' id='perm_".$app_index."_".$permission_index."' ".$checked." value='".$row['name']."'></td>\n";
|
||||
echo " <td valign='top' width='30%' nowrap='nowrap' class='".$row_style[$c]."' onclick=\"(document.getElementById('perm_".$app_index."_".$permission_index."').checked) ? document.getElementById('perm_".$app_index."_".$permission_index."').checked = false : document.getElementById('perm_".$app_index."_".$permission_index."').checked = true;\">".$row['name']."</td>\n";
|
||||
echo " <td valign='top' width='70%' class='row_stylebg' onclick=\"(document.getElementById('perm_".$app_index."_".$permission_index."').checked) ? document.getElementById('perm_".$app_index."_".$permission_index."').checked = false : document.getElementById('perm_".$app_index."_".$permission_index."').checked = true;\">".$row['description']." </td>\n";
|
||||
echo " <td valign='top' nowrap='nowrap' class='".$row_style[$c]."' onclick=\"(document.getElementById('perm_".$app_index."_".$permission_index."').checked) ? document.getElementById('perm_".$app_index."_".$permission_index."').checked = false : document.getElementById('perm_".$app_index."_".$permission_index."').checked = true;\">".$row['name']."</td>\n";
|
||||
echo " <td valign='top' class='row_stylebg' onclick=\"(document.getElementById('perm_".$app_index."_".$permission_index."').checked) ? document.getElementById('perm_".$app_index."_".$permission_index."').checked = false : document.getElementById('perm_".$app_index."_".$permission_index."').checked = true;\">".$row['description']." </td>\n";
|
||||
echo "</tr>\n";
|
||||
$c = ($c == 0) ? 1 : 0;
|
||||
|
||||
|
|
|
|||
|
|
@ -742,7 +742,7 @@
|
|||
|
||||
#main_content {
|
||||
padding: 8px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* GENERAL ELEMENTS *****************************************************************/
|
||||
|
|
@ -781,10 +781,16 @@
|
|||
:-ms-input-placeholder { color: <?php echo $placeholder_color; ?> } /* ie 10+ */
|
||||
::placeholder { color: <?php echo $placeholder_color; ?> } /* official standard */
|
||||
|
||||
input.txt,
|
||||
textarea.txt,
|
||||
select.txt,
|
||||
.formfld {
|
||||
textarea.txt,
|
||||
input[type=text].txt,
|
||||
input[type=number].txt,
|
||||
input[type=password].txt,
|
||||
select.formfld,
|
||||
textarea.formfld,
|
||||
input[type=text].formfld,
|
||||
input[type=number].formfld,
|
||||
input[type=password].formfld {
|
||||
font-family: <?php echo ($_SESSION['theme']['input_text_font']['text'] != '') ? $_SESSION['theme']['input_text_font']['text'] : 'Arial'; ?>;
|
||||
font-size: <?php echo ($_SESSION['theme']['input_text_size']['text'] != '') ? $_SESSION['theme']['input_text_size']['text'] : '12px'; ?>;
|
||||
color: <?php echo ($_SESSION['theme']['input_text_color']['text'] != '') ? $_SESSION['theme']['input_text_color']['text'] : '#000000'; ?>;
|
||||
|
|
@ -821,8 +827,14 @@
|
|||
vertical-align: middle;
|
||||
}
|
||||
|
||||
input.txt,
|
||||
.formfld {
|
||||
textarea.txt,
|
||||
input[type=text].txt,
|
||||
input[type=number].txt,
|
||||
input[type=password].txt,
|
||||
textarea.formfld,
|
||||
input[type=text].formfld,
|
||||
input[type=number].formfld,
|
||||
input[type=password].formfld {
|
||||
transition: width 0.25s;
|
||||
-moz-transition: width 0.25s;
|
||||
-webkit-transition: width 0.25s;
|
||||
|
|
@ -834,13 +846,25 @@
|
|||
padding: 4px 2px;
|
||||
}
|
||||
|
||||
input.txt:hover,
|
||||
.formfld:hover {
|
||||
textarea.txt:hover,
|
||||
input[type=text].txt:hover,
|
||||
input[type=number].txt:hover,
|
||||
input[type=password].txt:hover,
|
||||
textarea.formfld:hover,
|
||||
input[type=text].formfld:hover,
|
||||
input[type=number].formfld:hover,
|
||||
input[type=password].formfld:hover {
|
||||
border-color: <?php echo ($_SESSION['theme']['input_border_color_hover']['text'] != '') ? $_SESSION['theme']['input_border_color_hover']['text'] : '#c0c0c0'; ?>;
|
||||
}
|
||||
|
||||
input.txt:focus,
|
||||
.formfld:focus {
|
||||
textarea.txt:focus,
|
||||
input[type=text].txt:focus,
|
||||
input[type=number].txt:focus,
|
||||
input[type=password].txt:focus,
|
||||
textarea.formfld:focus,
|
||||
input[type=text].formfld:focus,
|
||||
input[type=number].formfld:focus,
|
||||
input[type=password].formfld:focus {
|
||||
border-color: <?php echo ($_SESSION['theme']['input_border_color_focus']['text'] != '') ? $_SESSION['theme']['input_border_color_focus']['text'] : '#c0c0c0'; ?>;
|
||||
/* first clear */
|
||||
-webkit-box-shadow: none;
|
||||
|
|
@ -984,11 +1008,22 @@
|
|||
display: inline;
|
||||
}
|
||||
|
||||
textarea {
|
||||
min-height: 75px;
|
||||
}
|
||||
|
||||
label {
|
||||
font-weight: normal;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
label input[type=checkbox],
|
||||
label input[type=radio] {
|
||||
vertical-align: -2px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
span.playback_progress_bar {
|
||||
background-color: #c43e42;
|
||||
height: 1px;
|
||||
|
|
@ -1728,7 +1763,6 @@
|
|||
//hide message bar on hover
|
||||
$("#message_text").mouseover(function() { $(this).hide(); $("#message_container").hide(); });
|
||||
|
||||
|
||||
<?php
|
||||
if (permission_exists("domain_select") && count($_SESSION['domains']) > 1) {
|
||||
?>
|
||||
|
|
@ -1771,7 +1805,6 @@
|
|||
}
|
||||
?>
|
||||
|
||||
|
||||
//link table rows (except the last - the list_control_icons cell) on a table with a class of 'tr_hover', according to the href attribute of the <tr> tag
|
||||
$('.tr_hover tr').each(function(i,e) {
|
||||
$(e).children('td:not(.list_control_icon,.list_control_icons,.tr_link_void)').click(function() {
|
||||
|
|
@ -1780,15 +1813,16 @@
|
|||
});
|
||||
});
|
||||
|
||||
|
||||
//apply the auto-size jquery script to all text inputs
|
||||
$("input.txt, textarea.txt, .formfld").autosizeInput();
|
||||
|
||||
$("input[type=text].txt,input[type=number].txt,input[type=password].txt,input[type=text].formfld,input[type=number].formfld,input[type=password].formfld").not('.datetimepicker').autosizeInput();
|
||||
|
||||
//apply bootstrap-datetime plugin
|
||||
$(function() {
|
||||
$('.datetimepicker').datetimepicker({
|
||||
format: 'YYYY-MM-DD HH:mm'
|
||||
format: 'YYYY-MM-DD HH:mm',
|
||||
showTodayButton: true,
|
||||
showClear: true,
|
||||
showClose: true,
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue