コード例 #1
0
$c = 0;
$row_style["0"] = "row_style0";
$row_style["1"] = "row_style1";
echo "<table class='tr_hover' width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo "<th id='th_filler' style='display: none; padding: 0px;'>" . img_spacer('21px', '1px') . "</th>\n";
echo "<th width='20%'>" . $text['label-time_user'] . "</th>\n";
echo "<th width='20%'>" . $text['label-time_start'] . "</th>\n";
echo "<th width='20%'>" . $text['label-time_duration'] . "</th>\n";
echo "<th width='40%'>" . $text['label-time_description'] . "</th>\n";
echo "<td class='list_control_icons' nowrap>";
echo img_spacer('25px', '1px');
if (permission_exists('contact_time_add')) {
    echo "<a href='contact_time_edit.php?contact_uuid=" . $_GET['id'] . "' alt='" . $text['button-add'] . "'>{$v_link_label_add}</a>";
} else {
    echo img_spacer('25px', '1px');
}
echo "</td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "<div id='div_contact_times' style='width: 100%; overflow: auto; direction: rtl; text-align: right; margin-bottom: 23px;'>";
echo "<table id='table_contact_times' class='tr_hover' style='width: 100%; direction: ltr;' border='0' cellpadding='0' cellspacing='0'>\n";
if ($result_count > 0) {
    foreach ($result as $row) {
        $tr_link = permission_exists('contact_time_edit') && $row['user_uuid'] == $_SESSION["user"]["user_uuid"] ? "href='contact_time_edit.php?contact_uuid=" . $row['contact_uuid'] . "&id=" . $row['contact_time_uuid'] . "'" : null;
        echo "<tr " . $tr_link . ">\n";
        if ($row["time_start"] != '' && $row['time_stop'] != '') {
            $time_start = strtotime($row["time_start"]);
            $time_stop = strtotime($row['time_stop']);
            $time = gmdate("H:i:s", $time_stop - $time_start);
        } else {
コード例 #2
0
$c = 0;
$row_style["0"] = "row_style0";
$row_style["1"] = "row_style1";
echo "<table class='tr_hover' width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo "<th id='th_filler' style='display: none; padding: 0px;'>" . img_spacer('21px', '1px', 'none') . "</th>\n";
echo "<th width='20%'>" . $text['label-time_user'] . "</th>\n";
echo "<th width='20%'>" . $text['label-time_start'] . "</th>\n";
echo "<th width='20%'>" . $text['label-time_duration'] . "</th>\n";
echo "<th width='40%'>" . $text['label-time_description'] . "</th>\n";
echo "<td class='list_control_icons' nowrap>";
echo img_spacer('25px', '1px', 'none');
if (permission_exists('contact_time_add')) {
    echo "<a href='contact_time_edit.php?contact_uuid=" . $_GET['id'] . "' alt='" . $text['button-add'] . "'>{$v_link_label_add}</a>";
} else {
    echo img_spacer('25px', '1px', 'none');
}
echo "</td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "<div id='div_contact_times' style='width: 100%; overflow: auto; direction: rtl; text-align: right; margin-bottom: 23px;'>";
echo "<table id='table_contact_times' class='tr_hover' style='width: 100%; direction: ltr;' border='0' cellpadding='0' cellspacing='0'>\n";
if ($result_count > 0) {
    foreach ($result as $row) {
        $tr_link = permission_exists('contact_time_edit') && $row['user_uuid'] == $_SESSION["user"]["user_uuid"] ? "href='contact_time_edit.php?contact_uuid=" . $row['contact_uuid'] . "&id=" . $row['contact_time_uuid'] . "'" : null;
        echo "<tr " . $tr_link . ">\n";
        if ($row["time_start"] != '' && $row['time_stop'] != '') {
            $time_start = strtotime($row["time_start"]);
            $time_stop = strtotime($row['time_stop']);
            $time = gmdate("H:i:s", $time_stop - $time_start);
        } else {
コード例 #3
0
                 case '12h':
                     echo $text['label-12-hour'];
                     break;
                 case '24h':
                     echo $text['label-24-hour'];
                     break;
             }
         } else {
             if ($category == "theme" && $subcategory == "menu_main_icons" && $name == "boolean" || $category == "theme" && $subcategory == "menu_sub_icons" && $name == "boolean" || $category == "theme" && $subcategory == "menu_brand_type" && $name == "text" || $category == "theme" && $subcategory == "menu_style" && $name == "text" || $category == "theme" && $subcategory == "menu_position" && $name == "text" || $category == "theme" && $subcategory == "logo_align" && $name == "text") {
                 echo "\t\t" . $text['label-' . $row['default_setting_value']];
             } else {
                 if ($subcategory == 'password' || substr_count($subcategory, '_password') > 0 || $category == "login" && $subcategory == "password_reset_key" && $name == "text") {
                     echo "\t\t" . str_repeat('*', strlen($row['default_setting_value']));
                 } else {
                     if ($category == "theme" && substr_count($subcategory, "_color") > 0 && ($name == "text" || $name == 'array')) {
                         echo "\t\t" . img_spacer('15px', '15px', 'background: ' . $row['default_setting_value'] . '; margin-right: 4px; vertical-align: middle; border: 1px solid ' . color_adjust($row['default_setting_value'], -0.18) . '; padding: -1px;');
                         echo "<span style=\"font-family: 'Courier New'; line-height: 6pt;\">" . htmlspecialchars($row['default_setting_value']) . "</span>\n";
                     } else {
                         echo "\t\t" . htmlspecialchars($row['default_setting_value']) . "\n";
                     }
                 }
             }
         }
     }
 }
 echo "\t</td>\n";
 echo "\t<td valign='top' class='" . $row_style[$c] . " tr_link_void' style='text-align: center;'>\n";
 if (permission_exists('default_setting_edit')) {
     echo "\t<a href=\"javascript:document.location.href='?id[]=" . $row['default_setting_uuid'] . "&enabled=" . ($row['default_setting_enabled'] == 'true' ? 'false' : 'true') . "&category=" . $category . "&search='+\$('#default_setting_search').val();\">" . $text['label-' . $row['default_setting_enabled']] . "</a>\n";
 } else {
     echo "\t" . $text['label-' . $row['default_setting_enabled']] . "\n";