コード例 #1
0
ファイル: mt_users.php プロジェクト: sonicdelay/lqsky
    if (in_array($branches[$j]["mt_main_Node_id"], $systemBranches)) {
        echo "background:#8080FF;color:#000000;";
    } else {
        echo "background:#F0F0F0;color:#000000;";
    }
    echo "\"";
    if (in_array($branches[$j]["mt_main_Node_id"], $systemBranches)) {
        echo " title=\"System branches\"";
    }
    echo "><a href=\"javascript:changeContent('mt_edit','" . $branches[$j]["mt_main_Node_id"] . "');\" style=\"color:#000000;\">" . chunk_split($branches[$j]["mt_main_Title"], 1, "<br/>") . "</a></td>";
}
echo "</tr>";
for ($j = 0; $j < count($DBContent); $j++) {
    $rValues = unserialize($DBContent[$j]["mt_data_Rights"]);
    $mtRights = $rValues[1];
    $nodeInfo = getNodeContent($DBContent[$j]["mt_main_Node_id"]);
    $aLevel = $nodeInfo["ALevel"];
    echo "<tr style=\"background:#FFFFFF;text-align:center;\">";
    echo "<td onclick=\"changeContent('mt_edit','" . $DBContent[$j]["mt_main_Node_id"] . "');\" title=\"" . $DBContent[$j]["mt_main_Node_id"] . "->" . $mtRights . "\" style=\"cursor:pointer;";
    switch ($aLevel) {
        case 4:
        case 2150:
            echo "background:#FFC0C0;";
            break;
        case 3:
        case 2148:
            echo "background:#FFF0C0;";
            break;
        case 2:
        case 2146:
            echo "background:#C0FFC0;";
コード例 #2
0
ファイル: handledb.php プロジェクト: sonicdelay/lqsky
                $uti_data_keys = array_keys($uti_data);
                for ($j = 0; $j < count($uti_data_keys); $j++) {
                    if (in_array($uti_data_keys[$j], $SpecialFields)) {
                        $complex = getNodeContext($uti_data[$uti_data_keys[$j]]);
                        $uti_data[$uti_data_keys[$j]] = $complex["node"]["Title"];
                    }
                }
            }
            if ($row[4] != $faci_id) {
                $faci_data = getNodeContent($row[4]);
                $faci_id = $row[4];
                $faci_data_keys = array_keys($faci_data);
                for ($j = 0; $j < count($faci_data_keys); $j++) {
                    if (in_array($faci_data_keys[$j], $SpecialFields)) {
                        $complex = getNodeContext($faci_data[$faci_data_keys[$j]]);
                        $faci_data[$faci_data_keys[$j]] = $complex["node"]["Title"];
                    }
                }
            }
            if ($row[6] != $user_id) {
                $user_data = getNodeContent($row[6]);
                $user_id = $row[6];
            }
            $newStream = array_merge($stream, $uti_data, $faci_data, $user_data);
            echo implode(";", $data[$i]);
            echo ";" . implode(";", $newStream);
            echo "";
            echo "\r\n";
        }
        break;
}
コード例 #3
0
ファイル: newsletter.php プロジェクト: sonicdelay/lqsky
 case "mt_tools":
     echo "<select name=\"selectedNewsletter\" onchange=\"changeContent('mt_tools');\">";
     echo "<option value=\"0\">-- SELECT --</option>";
     $keys = array_keys($newsletter);
     for ($i = 0; $i < count($keys); $i++) {
         echo "<option value=\"" . $keys[$i] . "\"";
         if ($keys[$i] == $selectedNewsletter) {
             echo " selected=\"selected\"";
         }
         echo ">" . $newsletter[$keys[$i]]["mt_main_Title"] . "</option>";
     }
     echo "</select>";
     echo "<button onclick=\"changeContent('mt_tools_run');\">Send</button>";
     echo "<div><textarea name=\"newsletterUsers\" style=\"width:90%;height:100px;\">";
     for ($i = 0; $i < count($users); $i++) {
         $node = getNodeContent($users[$i]);
         if ($i) {
             echo ", ";
         }
         echo $node["Email"];
     }
     echo "</textarea></div>";
     if ($selectedNewsletter) {
         echo "<input name=\"newsletterSubject\" type=\"text\" value=\"" . $subject . "\" style=\"width:773px;\"/><br/>";
         echo $mailContent;
     }
     break;
 case "mt_tools_run":
 case "mt_tools_finished":
     $Error = FALSE;
     if ($selectedNewsletter) {