Example #1
0
 public function update_pizza($pizza)
 {
     $args = array(':pizza_id' => $pizza->get_id(), ':customer_id' => $pizza->get_customer(), ':ingredient_1' => item($pizza->get_ingredients(), 0), ':ingredient_2' => item($pizza->get_ingredients(), 1), ':ingredient_3' => item($pizza->get_ingredients(), 2), ':price' => $pizza->get_price(), ':delivery' => $pizza->get_type(), ':canceled' => $pizza->get_status());
     $query = "UPDATE pizza SET\n\t\t\t\tcustomer_id = :customer_id, ingredient_1 = :ingredient_1, ingredient_2 = :ingredient_2, ingredient_3 = :ingredient_3, \n\t\t\t\tprice = :price, delivery = :delivery, canceled = :canceled WHERE pizza_id = :pizza_id";
     $update = $this->db->query($query, $args);
     return $update;
 }
Example #2
0
function populate()
{
    global $wpdb;
    $items = $wpdb->get_results("SELECT * FROM wp_pro_CraftyPanel");
    foreach ($items as $item) {
        item($item->id, $item->name, $item->publisher, $item->permission, $item->content);
    }
}
Example #3
0
 private function checkitem($userdata, $param, $key)
 {
     if (item($userdata, $param) && !isempty($userdata[$param])) {
         return 0;
     }
     $this->set_message(sptrinf(lang('account.param.empty'), $param) . '<br />');
     return 1;
 }
Example #4
0
function whichsize($dirname)
{
    if (!is_readable($dirname)) {
        return false;
    }
    $dirname_stack[] = $dirname;
    $size = 0;
    $dirname = array_shift($dirname_stack);
    $handle = opendir($dirname);
    while (false !== ($file = readdir($handle))) {
        if ($file != '.' && $file != '..' && is_readable($dirname . DIRECTORY_SEPARATOR . $file)) {
            if (is_dir($dirname . DIRECTORY_SEPARATOR . $file)) {
                $dirname_stack[] = $dirname . DIRECTORY_SEPARATOR . $file;
            }
            $size++;
        }
    }
    closedir($handle);
    return item($size);
}
 function scan($dir, $link, $sub)
 {
     $files = array();
     // Apakah benar-benar terdapat folder/file?
     if (file_exists($dir)) {
         foreach (scandir($dir) as $f) {
             if (!$f || $f[0] == '.') {
                 continue;
                 // Abaikan file tersembunyi
             }
             if (is_dir($dir . '/' . $f)) {
                 // List folder
                 $files[] = array("name" => $f, "type" => "folder", "modif" => date('Y-m-d h:i:s', filemtime($dir . '/' . $f)), "path" => $sub . '/' . $f, "items" => item($dir . '/' . $f));
             } else {
                 // List file
                 $files[] = array("name" => $f, "type" => "file", "link" => $link, "path" => $dir . '/' . $f, "modif" => date('Y-m-d h:i:s', filemtime($dir . '/' . $f)), "size" => filesize($dir . '/' . $f));
             }
         }
     }
     return $files;
 }
function feed($title, $link, $description)
{
    connect();
    $feed = '<?xml version="1.0"?>';
    $feed .= '<rss version="2.0">';
    $feed .= '<channel>';
    $feed .= "<title>{$title}</title>";
    $feed .= "<link>{$link}</link>";
    $feed .= "<image>";
    $feed .= "<url>http://terminal.jcubic.pl/css/images/logo.png</url>";
    $feed .= "<title>{$title}</title>";
    $feed .= "<link>http://terminal.jcubic.pl/#comments</link>";
    $feed .= "</image>";
    $feed .= "<copyright>Jakub Jankiewicz</copyright>";
    $feed .= "<generator>php script</generator>";
    $feed .= "<webMaster>jcubic@onet.pl</webMaster>";
    $query = "SELECT rss_date(date), nick, email, www, comment FROM jq_comments order by date DESC";
    $comments = mysql_array($query);
    $feed .= "<pubDate>{$comments[0][0]}</pubDate>";
    $feed .= "<description>{$description}</description>";
    foreach ($comments as $item) {
        if (!preg_match('/http:\\/\\//', $item[3])) {
            if (preg_match('/.*\\..*/', $item[3])) {
                $url = "http://" . $item[3];
            } else {
                $url = null;
            }
        } else {
            $url = $item[3];
        }
        $item[4] = htmlspecialchars($item[4]);
        $nick = strcmp($item[1], '') == 0 ? 'Anonymous' : $item[1];
        $feed .= item($nick, $nick, $url, $item[4], $item[0]);
    }
    $feed .= "</channel>";
    $feed .= "</rss>";
    return $feed;
}
Example #7
0
item("window_managers", "Escolha o visual de sua área de trabalho.", "_br");
#item ("network_security", "Let pirates bite the dust.", "");
item("old_and_sluggish", "Por que seu Windows fica mais lento dia após dia ?", "_br");
item("environment", "Faça algo pelo meio ambiente.", "_br");
item("backdoors", "Sem \"invasões\" no seu software.", "_br");
item("help", "Desfrute de suporte grátis e ilimitado.", "_br");
item("virtual_desktops", "Muitas janelas? Use desktops virtuais.", "_br");
#item ("suspend_hibernate", "Economize energia: deixe seu computador dormir ou hibernar.", "_br");
item("report_bugs", "Relatando Bugs.", "_br");
item("reboot_all_the_time", "Cansou de reiniciar seu computador toda hora?", "_br");
item("alive", "Deixe seu computador velho ter uma segunda vida.", "_br");
item("free_games", "Jogue centenas de jogos de graça", "_br");
item("other_countries", "Ajude outros países, inclusive o seu.", "_br");
item("gaim_im_services", "Use MSN, AIM, ICQ, Jabber, com um único programa.", "_br");
item("amarok", "Tenha um ótimo tocador de músicas.", "_br");
item("weather", "Fique de olho no tempo.", "_br");
?>
</p>
</div>

<br class="clearboth" />

<h2>Os casos em que você deveria continuar usando Windows (pelo menos por enquanto)</h2>

<div id="items">
<p>

<div class="item">
<a href="stick_to_windows/software/index_br.php">
<img src="stick_to_windows/software/Images/hang_thumbnail.png" />
<p>Existe software proprietário que você não consegue viver sem</p></a>
Example #8
0
item("window_managers", "Αλλάξτε την εμφάνιση της επιφάνειας εργασίας σας.", "_el");
#item ("network_security", "Ξεγράψτε τους πειρατές.", "_el");
item("old_and_sluggish", "Γιατί τα Windows σας γίνονται κάθε μέρα πιο αργά;", "_el");
item("environment", "Κάντε κάτι για το περιβάλλον.", "_el");
item("backdoors", "Λογισμικό χωρίς κερκόπορτες.", "_el");
item("help", "Απολαύστε δωρεάν και απεριόριστη υποστήριξη χρηστών.", "_el");
item("virtual_desktops", "Πάρα πολλά παράθυρα; Χρησιμοποιήστε επιφάνειες εργασίας.", "_el");
#item ("suspend_hibernate", "Εξοικονομήστε ενέργεια: αφήστε τον υπολογιστή σας να κοιμηθεί.", "_el");
item("report_bugs", "Μην περιμένετε χρόνια να λυθούν τα προβλήματα, αναφέρετέ τα και παρακολουθήστε τα.", "_el");
item("reboot_all_the_time", "Βαρεθήκατε να επανεκκινείτε συνέχεια τον υπολογιστή σας;", "_el");
item("alive", "Δώστε στον παλιό υπολογιστή σας νέα ζωή.", "_el");
item("free_games", "Παίξτε εκατοντάδες δωρεάν παιχνίδια.", "_el");
item("other_countries", "Βοηθήστε άλλες χώρες, και τη δική σας.", "_el");
item("gaim_im_services", "Χρησιμοποιήστε MSN, AIM, ICQ, Jabber, με ένα μόνο πρόγραμμα.", "_el");
item("amarok", "Ακούστε μουσική.", "_el");
item("weather", "Παρακολουθήστε τις καιρικές προβλέψεις.", "_el");
?>
</p>
</div>

<br class="clearboth" />

<h2>Μερικές περιπτώσεις όπου είναι καλύτερα να μείνετε στα Windows (για τώρα)</h2>

<div id="items">
<p>

<div class="item">
<a href="stick_to_windows/software/index_el.php">
<img src="stick_to_windows/software/Images/hang_thumbnail.png" />
<p>Δεν μπορείτε να ζήσετε χωρίς κάποιο "κλειστό" λογισμικό</p></a>
Example #9
0
item("window_managers", "Sử dụng bất kì giao diện gì bạn muỗn.", "_vi");
#item ("network_security", "Let pirates bite the dust. (I couldn't translate it without the content)", "");
item("old_and_sluggish", "Vì sao Windows chạy ngày càng chậm ?", "_vi");
item("environment", "Do something for the environment.", "");
item("backdoors", "No back doors in your software.", "");
item("help", "Hỗ trợ kĩ thuật miễn phí, bất cứ lúc nào!.", "_vi");
item("virtual_desktops", "Quá nhiều cửa sổ trên màn hình ? Hãy dùng nhiều không gian làm việc (workspaces).", "_vi");
#item ("suspend_hibernate", "Hãy tiết kiệm điện: Để máy tính sleep hoặc hibernate thay vì shutdown.", "_vi");
item("report_bugs", "Không cần đợi 10 năm để sửa lỗi chương trình, báo lỗi với người phát triển chương trình để lỗi được sửa nhanh nhất.", "_vi");
item("reboot_all_the_time", "Vì sao bạn phải khởi động lại máy thường xuyên ?", "_vi");
item("alive", "Đừng vứt máy tính cũ của bạn đi, nó vẫn còn rất có ích.", "_vi");
item("free_games", "Giải trí với hàng trăm game mã nguồn mở và miễn phí.", "_vi");
item("other_countries", "Cứu đất nước của bạn, và chính bạn khỏi ưu thế độc quyền của Microsoft.", "_vi");
item("gaim_im_services", "Chat với người dùng MSN, AIM, ICQ, Jabber, chỉ cần dùng 1 chương trình duy nhất.", "_vi");
item("amarok", "Nghe nhạc với chương trình cực kì đa năng.", "_vi");
item("weather", "Xem dự báo thời tiết.", "_vi");
?>
</p>
</div>

<br class="clearboth" />

<h2>Bạn vẫn phải sử dụng Windows (tại thời điểm này) nếu</h2>

<div id="items">
<p>

<div class="item">
<a href="stick_to_windows/software/index_vi.php">
<img src="stick_to_windows/software/Images/hang_thumbnail.png" />
<p>Bạn phải dùng các chương trình độc quyền chỉ chạy trên Windows</p></a>
Example #10
0
item("window_managers", "Pasirink savo darbastalį.", "_lit");
#item ("network_security", "Let pirates bite the dust.", "");
item("old_and_sluggish", "Kodėl jūsų Windows'ai kasdien vis lėtėja?", "_lit");
item("environment", "Saugok aplinką.", "_lit");
item("backdoors", "Programinės įrangos durys yra atviros.", "_lit");
item("help", "Mėgaukitės nemokamu ir neribotu palaikymu.", "_lit");
item("virtual_desktops", "Perdaug lang&#371;? Naudok virtualius ekranus.", "_lit");
#item ("suspend_hibernate", "Sutaupyk &#353;iek tiek energijos: leisk kompiuteriui miegoti arba hibernuoti.", "");
item("report_bugs", "Nelauk metų metus kol riktai bus išspręsti, susek ir pranešk apie juos.", "_lit");
item("reboot_all_the_time", "Pavargai nuolat perkraudinėti kompiuterį?", "_lit");
item("alive", "Suteik savo senam kompiuteriui naują gyvenimą.", "_lit");
item("free_games", "Žaisk šimtus žaidimų nemokamai.", "_lit");
item("other_countries", "Padėk kitoms šalis, taip pat ir savo.", "_lit");
item("gaim_im_services", "Naudokis MSN, AIM, ICQ, Jabber tinklais viena programa", "_lit");
item("amarok", "Gauk puikų muzikos grotuvą.", "_lit");
item("weather", "Sek orus.", "_lit");
?>
</p>
</div>

<br class="clearboth" />

<h2>Keli atvejai, kai turėtumėte likti prie Windows'ų (kol kas)</h2>

<div id="items">
<p>

<div class="item">
<a href="stick_to_windows/software">
<img src="stick_to_windows/software/Images/hang_thumbnail.png" />
<p>Turite nuosavybinės programinės įrangos, be kurios negalite gyventi</p></a>
Example #11
0
function item($n, $type = 'v')
{
    $tbl = str_replace(' ', '', $n);
    global $sessionInfo;
    $tablePerm = admin_getpermissionstable($sessionInfo['userid'], $tbl);
    $tblstr = 'table=' . $tbl;
    $viewfile = 'view.php';
    $addfile = 'addedit.php';
    $target = 'target="main"';
    $class = 'leftnavitem';
    if ($tablePerm['view']) {
        if (is_integer(strpos($type, 'v')) || is_integer(strpos($type, 'a'))) {
            echo html_a($viewfile . '?' . $tblstr, $n, $class, $target);
        }
        if ($tablePerm['add'] && is_integer(strpos($type, 'a'))) {
            echo html_a($addfile . '?' . $tblstr, '(Add)', $class, $target);
        }
        echo '<br />' . "\n";
    }
}
$a = array('Actions', 'Bookings', 'Check Outs', 'Group Action Mapping', 'Groups', 'Vendors', 'Notes', 'Object Types', 'Objects', 'Purchases', 'User Group Mapping', 'Users', 'Transactions');
//homepage link
echo html_a('rightframe.php', 'Home', 'leftnavitem', 'target="main"') . '<br />' . "\n";
//item links
foreach ($a as $i) {
    item($i, 'va');
}
//logout stuff
//echo html_a('transactions.php','Transactions','leftnavitem','target="_top"').'<br />'."\n";
echo html_a('logout.php', 'Logout', 'leftnavitem', 'target="_top"') . "\n";
include 'footer.inc.php';
Example #12
0
#item ("network_security", "Laat piraten in het stof bijten.", "_nl");
item("old_and_sluggish", "Waarom wordt Windows steeds langzamer?", "_nl");
item("environment", "Doe iets voor het milieu.", "_nl");
item("backdoors", "Geen achterpoortjes in uw software.", "_nl");
item("help", "Geniet van gratis, onbeperkte ondersteuning.", "_nl");
item("virtual_desktops", "Te veel schermen tegelijk open? Gebruik werkbladen.", "_nl");
item("categories", "Geen grote rommel in uw startmenu.", "_nl");
#item ("suspend_hibernate", "Bespaar energie: zet uw computer in slaapstand of pauzestand", "_nl");
item("report_bugs", "Wacht geen jaren totdat problemen opgelost worden, rapporteer ze en vind de oorzaak.", "_nl");
item("reboot_all_the_time", "Ben je moe om de hele tijd te herstarten?", "_nl");
item("alive", "Geef je computer een tweede leven.", "_nl");
item("free_games", "Speel honderden gratis spellen.", "_nl");
item("other_countries", "Help andere landen, ook uw eigen.", "_nl");
item("gaim_im_services", "Gebruik AIM, ICQ, IRC, Jabber en Facebook Chat met één programma.", "_nl");
item("amarok", "Gebruik een fantastische muziekspeler.", "_nl");
item("weather", "Hou het weer in de gaten.", "_nl");
?>
</p>
</div>

<br class="clearboth" />

<h2>Een paar dingen waarvoor je (nu nog) bij Windows moet blijven</h2>

<div id="items">
<p>

<div class="item">
<a href="stick_to_windows/software/index_nl.php">
<img src="stick_to_windows/software/Images/hang_thumbnail.png" />
<p>Er is betaalde software die u niet kan missen</p></a>
Example #13
0
item("network_security", "חיים קשים יותר לתוקפים.", "_he");
item("old_and_sluggish", "למה התקנת ה-Windows שלך נהיית יותר ויותר איטית במרוצת הזמן?", "_he");
item("environment", "עשה משהו למען איכות הסביבה.", "_he");
item("backdoors", "אין דלתות סתרים בתוכנה שלך.", "_he");
item("help", "תמיכה לא מוגבלת ובחינם להנאתך.", "_he");
item("virtual_desktops", "יותר מדי חלונות? השתמש בשטחי עבודה מרובים.", "_he");
item("categories", "אין יותר בלגן בתפריט ההתחלה שלך.", "_he");
item("suspend_hibernate", "חסוך אנרגיה: תן למחשב לישון או לחרופ.", "_he");
item("report_bugs", "אל תחכה שנים לתיקון באגים- דווח עליהם וסייע בתיקונם.", "_he");
item("reboot_all_the_time", "האם התעייפת מהצורך לאתחל את מחשבך כל הזמן?", "_he");
item("alive", "תן למחשבך הזקן הזדמנות נוספת לחיות.", "_he");
item("free_games", "שחק מאות משחקים בחינם.", "_he");
item("other_countries", "סייע לארצות אחרות, וגם לארצך.", "_he");
item("gaim_im_services", "השתמש בתוכנה יחידה לתקשורת באמצעות MSN, AIM, ICQ, Jabber.", "_he");
item("amarok", "קבל נגן מוסיקה מדהים.", "_he");
item("weather", "שים עין על מזג האוויר.", "_he");
?>
</p>
</div>

<br class="clearboth" />

<h2>המקרים הבודדים, שבהם עדיף שתישאר עם Windows (לעת עתה)</h2>

<div id="items">
<p>

<div class="item">
<a href="stick_to_windows/software/index_he.php?lang=he">
<img src="stick_to_windows/software/Images/hang_thumbnail.png" />
<p>יש תוכנה קניינית, שאינך יכול לחיות בלעדיה</p></a>
Example #14
0
item("window_managers", "デスクトップぐらい自分色に染めたいわな", "_ja");
#item ("network_security", "クラッカーなんてこてんぱ", "");
item("old_and_sluggish", "Windows使ってるとだんだん遅くならない?", "_ja");
item("environment", "Do something for the environment.", "");
item("backdoors", "No back doors in your software.", "");
item("help", "無料で無期限のサポートがあるって?", "_ja");
item("virtual_desktops", "ウィンドウ散らかりっぱなし。ワークスペース使えばいいのに", "_ja");
#item ("suspend_hibernate", "省エネでエコ。使わないパソコンは眠らせよっ", "");
item("report_bugs", "いつまでも直らないバグ。バグ退治に協力すれば解決は早いのにぃ", "_ja");
item("reboot_all_the_time", "再起動、再起動、再起動。もううんざり!", "_ja");
item("alive", "昔のパソコンに第二の人生を!", "_ja");
item("free_games", "無料ゲームが無数にあるんだよ", "_ja");
item("other_countries", "途上国のため、世界のために", "_ja");
item("gaim_im_services", "MSNにAIMにICQにGoogle Talkに。ああ、どれを使ったらいいのさ?", "_ja");
item("amarok", "音楽聞くならLinux!", "_ja");
item("weather", "天気予報もLinux!", "_ja");
?>
</p>
</div>

<br class="clearboth" />

<h2>Windowsがやめられない! 早くやめさせて!</h2>

<div id="items">
<p>

<div class="item">
<a href="stick_to_windows/software/index_ja.php">
<img src="stick_to_windows/software/Images/hang_thumbnail.png" />
<p>このソフト、こいつなしじゃ仕事にならないんだわ、高いけどねぇ。</p></a>
Example #15
0
item("window_managers", "Изберете как да изглежда работната ви площ.", "_bg");
#item ("network_security", "Нека пиратите ни дишат прахта.", "_bg");
item("old_and_sluggish", "Защо вашият Windows става все по-бавен с всеки изминал ден?", "_bg");
item("environment", "Do something for the environment.", "");
item("backdoors", "No back doors in your software.", "");
item("help", "Радвайте се на безплатна и неограничена поддръжка.", "_bg");
item("virtual_desktops", "Прекалено много прозорци? Използвайте работните места.", "_bg");
item("suspend_hibernate", "Спестете енергия: нека компютърът ви спи или хибернира.", "_bg");
item("report_bugs", "Не чакайте с години да бъдат решени грешките, докладвайте за тях и ги следете.", "_bg");
item("reboot_all_the_time", "Уморихте ли се постоянно да рестартирате компютъра си?", "_bg");
item("alive", "Нека старият ви компютър има втори живот.", "_bg");
item("free_games", "Играйте безплатно стотици игри.", "_bg");
item("other_countries", "Помогнете на другите страни и на вашата собствена.", "_bg");
item("gaim_im_services", "Използвайте MSN, AIM, ICQ, Jabber с една-единствена програма.", "_bg");
item("amarok", "Вземете чудесна програма за слушане на музика.", "_bg");
item("weather", "Следете прогнозата за времето.", "_bg");
?>
</p>
</div>

<br class="clearboth" />

<h2>Малкото случаи, в които трябва да останете с Windows (засега)</h2>

<div id="items">
<p>

<div class="item">
<a href="stick_to_windows/software/index_bg.php">
<img src="stick_to_windows/software/Images/hang_thumbnail.png" />
<p>Не можете без определен собственически софтуер</p></a>
Example #16
0
item("window_managers", "خودتون شكل ميزكارتون رو انتخاب كنيد.", "_per");
#item ("network_security", "Let pirates bite the dust.", "");
item("old_and_sluggish", "چرا ويندوز روز به روز كندتر ميشه؟", "_per");
item("environment", "Do something for the environment.", "");
item("backdoors", "No back doors in your software.", "");
item("help", "ز پشتيباني رايگان و نامحدود لذت ببريد.", "_per");
item("virtual_desktops", "پنجره&zwnj;ها زيادند؟از فضاهاي كاري استفاده كنيد", "_per");
#item ("suspend_hibernate", "در مصرف انرژي صرفه جويي كنيد:كامپيوترتون رو به خواب زمستاني ببريد.", "_per");
item("report_bugs", "گزارش كردن خطاها", "_per");
item("reboot_all_the_time", "آيا از راه&zwnj;اندازي مجدد كردن هميشگي كامپيوترتون خسته شديد؟", "_per");
item("alive", "به كامپيوتر قديمي خود جان تازه&zwnj;اي ببخشيد.", "_per");
item("free_games", "صدها بازي رو رايگان انجام بدين", "_per");
item("other_countries", "به كشورهاي ديگه و كشور خودتون كمك كنيد", "_per");
item("gaim_im_services", "استفاده از سرويسهاي&nbsp;MSN, AIM, ICQ, Jabberهمگي در يك برنامه", "_per");
item("amarok", "ك پخش كننده موسيقي قوي داشته باشيد!", "_per");
item("weather", "هميشه از وضعيت آب و هوا مطلع باشيد.", "_per");
?>
</p>
</div>

<br class="clearboth" />

<h2>The few cases where you should stick to Windows (for now)</h2>

<div id="items">
<p>

<div class="item">
<a href="stick_to_windows/software/index_per.php">
<img src="stick_to_windows/software/Images/hang_thumbnail.png" />
<p>نرم افزارهايي داريد كه بدون
Example #17
0
#item ("network_security", "Ikke gi hackere sjansen.", "_no");
item("old_and_sluggish", "Hvorfor blir din Windows tregere for hver dag som går?", "_no");
item("environment", "Hjelp miljøet.", "_no");
item("backdoors", "Programvaren din er fri for bakdører.", "_no");
item("help", "Dra nyte av gratis og ubegrenset support.", "_no");
item("virtual_desktops", "For mange vinduer? Bruk flere skrivebord.", "_no");
item("categories", "Ikke noe rot i Start-menyen din.", "_no");
#item ("suspend_hibernate", "Spar på strømmen: La datamaskinen din «sove» eller «gå i dvale».", "_no");
item("report_bugs", "Ikke vent årevis på at feil skal bli fikset – rapporter dem.", "_no");
item("reboot_all_the_time", "Er du lei av å måtte restarte datamaskinen din hele tiden?", "_no");
item("alive", "Gi nytt liv til din gamle datamaskin!", "_no");
item("free_games", "Spill hundrevis av spill helt gratis.", "_no");
item("other_countries", "Hjelp andre land og ditt eget!", "_no");
item("gaim_im_services", "Bruk MSN, AIM, ICQ, Jabber, alt med ett enkelt program.", "_no");
item("amarok", "Få en god musikkavspiller.", "_no");
item("weather", "Hold øye med været.", "_no");
?>
</p>
</div>

<br class="clearboth" />

<h2>De få gangene der du bør beholde Windows (inntil videre)</h2>

<div id="items">
<p>

<div class="item">
<a href="stick_to_windows/software/index_no.php">
<img src="stick_to_windows/software/Images/hang_thumbnail.png" />
<p>Du har proprietær programvare du ikke kan leve uten</p></a>
Example #18
0
item("window_managers", "เลือกเอา คุณจะเอาหน้า (จอ) แบบไหน?", "_th");
#item ("network_security", "หลอกให้โจรกินฝุ่น", "_th");
item("old_and_sluggish", "ทำไมวินโดวส์ของคุณเซื่องลงทุกวี่ทุกวัน?", "_th");
item("environment", "ทำอะไรซักอย่างเพื่อโลกของเรา", "_th");
item("backdoors", "ไม่มีช่องโหว่ให้เล็ดรอดเข้ามา", "_th");
item("help", "รื่นเริงบันเทิงใจกับความช่วยเหลือฟรีๆ และไร้ขีดจำกัด", "_th");
item("virtual_desktops", "หน้าต่างมากเกินไปไหม? ใช้โต๊ะทำงานซิ", "_th");
#item ("suspend_hibernate", "ประหยัดพลังงานกันบ้าง.... ให้เครื่องของคุณหลับ หรือจำศีล", "_th");
item("report_bugs", "อย่าปล่อยให้บั๊กลอยนวลเป็นปีๆ รายงานมันซะ และฆ่ามันให้ตาย", "_th");
item("reboot_all_the_time", "คุณเหนื่อยหน่ายกับการรีสตาร์ทเครื่องอยู่ร่ำไปไหม?", "_th");
item("alive", "ปลุกเครื่องเก่าของคุณให้ฟื้นคืนชีพ", "_th");
item("free_games", "เกมส์ฟรีๆ มีให้เล่นถมถืดไป", "_th");
item("other_countries", "ช่วยเหลือโลก และสยามประเทศของเรา", "_th");
item("gaim_im_services", "ใช้ MSN, AIM, ICQ, Jabber ภายใต้หนึ่งโปรแกรม", "_th");
item("amarok", "สุดยอดเครื่องเล่นเพลงแห่งตำนาน", "_th");
item("weather", "จับจ้องอุณหภูมิโลก", "_th");
?>
</p>
</div>

<br class="clearboth" />

<h2>มีบางกรณีที่คุณหลีกหนีไปจากวินโดวส์ไม่ได้ (เฉพาะตอนนี้นะ)</h2>

<div id="items">
<p>

<div class="item">
<a href="stick_to_windows/software/index_th.php">
<img src="stick_to_windows/software/Images/hang_thumbnail.png" />
<p>คุณอยู่ไม่ได้หากขาดซอฟต์แวร์ตัวนี้</p></a>
 
	<?php 
while ($item = loop_items()) {
    if (item_has_files()) {
        while (loop_files_for_item($item)) {
            $file = get_current_file();
            if ($file->hasThumbnail()) {
                ?>
 
	<item>
		<title><![CDATA[<?php 
                echo item('Dublin Core', 'Title');
                ?>
]]></title>
		<media:description><![CDATA[<?php 
                echo item('Dublin Core', 'Description');
                ?>
]]></media:description>
		<link><?php 
                echo abs_item_uri();
                ?>
</link>
		<guid><?php 
                echo $file->getWebPath('thumbnail');
                ?>
</guid>
		<media:thumbnail url="<?php 
                echo $file->getWebPath('thumbnail');
                ?>
"/>
		<media:content url="<?php 
Example #20
0
function template_edit()
{
    global $colors, $struct_graph, $image_types, $fields_graph_template_template_edit;
    /* ================= input validation ================= */
    input_validate_input_number(get_request_var("id"));
    /* ==================================================== */
    /* graph item list goes here */
    if (!empty($_GET["id"])) {
        item();
    }
    if (!empty($_GET["id"])) {
        $template = db_fetch_row("select * from graph_templates where id=" . $_GET["id"]);
        $template_graph = db_fetch_row("select * from graph_templates_graph where graph_template_id=" . $_GET["id"] . " and local_graph_id=0");
        $header_label = "[edit: " . $template["name"] . "]";
    } else {
        $header_label = "[new]";
    }
    html_start_box("<strong>Template</strong> {$header_label}", "100%", $colors["header"], "3", "center", "");
    draw_edit_form(array("config" => array(), "fields" => inject_form_variables($fields_graph_template_template_edit, isset($template) ? $template : array(), isset($template_graph) ? $template_graph : array())));
    html_end_box();
    html_start_box("<strong>Graph Template</strong>", "100%", $colors["header"], "3", "center", "");
    $form_array = array();
    while (list($field_name, $field_array) = each($struct_graph)) {
        $form_array += array($field_name => $struct_graph[$field_name]);
        $form_array[$field_name]["value"] = isset($template_graph) ? $template_graph[$field_name] : "";
        $form_array[$field_name]["form_id"] = isset($template_graph) ? $template_graph["id"] : "0";
        $form_array[$field_name]["description"] = "";
        $form_array[$field_name]["sub_checkbox"] = array("name" => "t_" . $field_name, "friendly_name" => "Use Per-Graph Value (Ignore this Value)", "value" => isset($template_graph) ? $template_graph["t_" . $field_name] : "");
    }
    draw_edit_form(array("config" => array(), "fields" => $form_array));
    form_hidden_box("rrdtool_version", read_config_option("rrdtool_version"), "");
    html_end_box();
    form_save_button("graph_templates.php");
    //Now we need some javascript to make it dynamic
    ?>
<script language="JavaScript">

dynamic();

function dynamic() {
	//alert("RRDTool Version is '" + document.getElementById('rrdtool_version').value + "'");
	//alert("Log is '" + document.getElementById('auto_scale_log').checked + "'");
	document.getElementById('t_scale_log_units').disabled=true;
	document.getElementById('scale_log_units').disabled=true;
	if ((document.getElementById('rrdtool_version').value != 'rrd-1.0.x') &&
		(document.getElementById('auto_scale_log').checked)) {
		document.getElementById('t_scale_log_units').disabled=false;
		document.getElementById('scale_log_units').disabled=false;
	}
}

function changeScaleLog() {
	//alert("Log changed to '" + document.getElementById('auto_scale_log').checked + "'");
	document.getElementById('t_scale_log_units').disabled=true;
	document.getElementById('scale_log_units').disabled=true;
	if ((document.getElementById('rrdtool_version').value != 'rrd-1.0.x') &&
		(document.getElementById('auto_scale_log').checked)) {
		document.getElementById('t_scale_log_units').disabled=false;
		document.getElementById('scale_log_units').disabled=false;
	}
}
</script>
<?php 
}
Example #21
0
item("window_managers", "Escolle como queres que se vexa o teu escritorio.", "_gl");
#item ("network_security", "Fai morder o po aos piratas", "_gl");
item("old_and_sluggish", "Por qué Windows vai má¡s devagar cada día?", "_gl");
item("environment", "Do something for the environment.", "");
item("backdoors", "No back doors in your software.", "");
item("help", "Goza de soporte técnico gratis e ilimitado.", "_gl");
item("virtual_desktops", "Moitas ventás abertas? Usa as Áreas de traballo.", "_gl");
item("suspend_hibernate", "Aforra algo de enerxía: deixa que a túa computadora durma ou hiberne.", "_gl");
item("report_bugs", "Non esperes anos a que os erros sexan resoltos, encontraos e informa deles.", "_gl");
item("reboot_all_the_time", "Estás cansado de reiniciar a túa computadora todo o tempo?", "_gl");
item("alive", "Dálle á túa vella computadora unha segunda vida.", "_gl");
item("free_games", "Accede a centos de xogos gratis.", "_gl");
item("other_countries", "Axuda a outros países, incluído o teu.", "_gl");
item("gaim_im_services", "Usa MSN, AIM, ICQ, Jabber, cun só programa.", "_gl");
item("amarok", "Ten un gran reprodutor de música.", "_gl");
item("weather", "Non perdas de vista o clima.", "_gl");
?>
</p>
</div>

<br class="clearboth" />

<h2>Os poucos casos onde deberías quedarte con Windows (polo de agora, aínda que podes instalar os dous sistemas)</h2>

<div id="items">
<p>

<div class="item">
<a href="stick_to_windows/software/index_gl.php">
<img src="stick_to_windows/software/Images/hang_thumbnail.png" />
<p>Non podes vivir sen un programa privativo que tes. </p></a>
Example #22
0
	case 'item_moveup':
		item_moveup();

		header("Location: graph_templates.php?action=template_edit&id=" . $_GET["graph_template_id"]);
		break;
	case 'item_edit':
		include_once("./include/top_header.php");

		item_edit();

		include_once("./include/bottom_footer.php");
		break;
	case 'item':
		include_once("./include/top_header.php");

		item();

		include_once ("./include/bottom_footer.php");
		break;
}

/* --------------------------
    The Save Function
   -------------------------- */

function form_save() {
	if (isset($_POST["save_component_item"])) {
		/* ================= input validation ================= */
		input_validate_input_number(get_request_var_post("graph_template_id"));
		input_validate_input_number(get_request_var_post("task_item_id"));
		/* ==================================================== */
Example #23
0
function template_edit() {
	global $colors, $struct_graph, $image_types, $fields_graph_template_template_edit;

	/* graph item list goes here */
	if (!empty($_GET["id"])) {
		item();
	}

	if (!empty($_GET["id"])) {
		$template = db_fetch_row("select * from graph_templates where id=" . $_GET["id"]);
		$template_graph = db_fetch_row("select * from graph_templates_graph where graph_template_id=" . $_GET["id"] . " and local_graph_id=0");

		$header_label = "[edit: " . $template["name"] . "]";
	}else{
		$header_label = "[new]";
	}

	html_start_box("<strong>Template</strong> $header_label", "98%", $colors["header"], "3", "center", "");

	draw_edit_form(array(
		"config" => array(),
		"fields" => inject_form_variables($fields_graph_template_template_edit, (isset($template) ? $template : array()), (isset($template_graph) ? $template_graph : array()))
		));

	html_end_box();

	html_start_box("<strong>Graph Template</strong>", "98%", $colors["header"], "3", "center", "");

	$form_array = array();

	while (list($field_name, $field_array) = each($struct_graph)) {
		$form_array += array($field_name => $struct_graph[$field_name]);

		$form_array[$field_name]["value"] = (isset($template_graph) ? $template_graph[$field_name] : "");
		$form_array[$field_name]["form_id"] = (isset($template_graph) ? $template_graph["id"] : "0");
		$form_array[$field_name]["description"] = "";
		$form_array[$field_name]["sub_checkbox"] = array(
			"name" => "t_" . $field_name,
			"friendly_name" => "Use Per-Graph Value (Ignore this Value)",
			"value" => (isset($template_graph) ? $template_graph{"t_" . $field_name} : "")
			);
	}

	draw_edit_form(
		array(
			"config" => array(
				),
			"fields" => $form_array
			)
		);

	html_end_box();

	form_save_button("graph_templates.php");
}
Example #24
0
item("window_managers", "أختر شكل سطح مكتبك.", "");
#item ("network_security", "Let pirates bite the dust.", "");
item("old_and_sluggish", "لماذا الويندوز يزداد بطأ يوم بعد يوم؟", "");
item("environment", "Do something for the environment.", "");
item("backdoors", "No back doors in your software.", "");
item("help", "أستمتع بالدعم المجاني و الغير محدود.", "");
item("virtual_desktops", "هل تستخدم عدد كبير من البرامج في نفس الوقت؟ أستخدم ساحات العمل.", "");
#item ("suspend_hibernate", "أحفظ بعض الطاقة: نوم جهازك أو أحفظ جميع البرامج المستخدمة و أغلقه.", "");
item("report_bugs", "لا تنتظر الوقت الطويل لحل المشاكل، بلغ عن المشكلة و تابع حلها.", "");
item("reboot_all_the_time", "هل تعبت من إعادة تشغيل جهازك طوال الوقت؟", "");
item("alive", "بإمكانك إستخدام جهازك القديم مدة أطول.", "_ar");
item("free_games", "ألعب الكثير من الألعاب مجاناً.", "_ar");
item("other_countries", "ساعد الغير، وساعد بلدك", "");
item("gaim_im_services", "أستخدم الهوت ميل ، الياهو ، القوقل ، أي سي كيو و غيرها من خدمات المحادثة من خلال برنامج واحد فقط.", "");
item("amarok", "أستخدم مشغل صوتيات ممتاز.", "_ar");
item("weather", "تابع حالة الجو دائماً.", "");
?>
</p>
</div>

<br class="clearboth" />

<h2>بعض الحالات التي تجبرك على إستخدام الويندوز(حالياً)</h2>

<div id="items">
<p>

<div class="item">
<a href="stick_to_windows/software">
<img src="stick_to_windows/software/Images/hang_thumbnail.png" />
<p>لديك برنامج محدد لا يمكنك الإستغناء عنه</p></a>
Example #25
0
function graph_edit()
{
    global $colors, $struct_graph, $image_types, $consolidation_functions, $graph_item_types, $struct_graph_item;
    /* ================= input validation ================= */
    input_validate_input_number(get_request_var("id"));
    /* ==================================================== */
    /* modify for multi user start */
    if ($_SESSION["permission"] < ACCESS_ADMINISTRATOR) {
        // graph add
        if ($_GET["id"] == "") {
            if ($_GET["host_id"] != -1) {
                input_validate_input_number(get_request_var("host_id"));
                if (!check_host($_GET["host_id"])) {
                    access_denied();
                }
            }
            // graph edit
        } else {
            $permission = check_graph($_GET["id"]);
            if ($permission != GRAPH_PRIVATE && $permission != GRAPH_PRIVATE + GRAPH_PUBLIC) {
                access_denied();
            }
        }
    }
    /* modify for multi user end */
    $use_graph_template = true;
    if (!empty($_GET["id"])) {
        $local_graph_template_graph_id = db_fetch_cell("select local_graph_template_graph_id from graph_templates_graph where local_graph_id=" . $_GET["id"]);
        $graphs = db_fetch_row("select * from graph_templates_graph where local_graph_id=" . $_GET["id"]);
        $graphs_template = db_fetch_row("select * from graph_templates_graph where id={$local_graph_template_graph_id}");
        $host_id = db_fetch_cell("select host_id from graph_local where id=" . $_GET["id"]);
        $header_label = "[edit: " . htmlspecialchars(get_graph_title($_GET["id"])) . "]";
        if ($graphs["graph_template_id"] == "0") {
            $use_graph_template = false;
        }
    } else {
        $header_label = "[new]";
        $use_graph_template = false;
    }
    /* modify for multi user start */
    if ($_SESSION["permission"] < ACCESS_ADMINISTRATOR) {
        unset($_GET["debug"]);
    }
    /* modify for multi user end */
    /* handle debug mode */
    if (isset($_GET["debug"])) {
        if ($_GET["debug"] == "0") {
            kill_session_var("graph_debug_mode");
        } elseif ($_GET["debug"] == "1") {
            $_SESSION["graph_debug_mode"] = true;
        }
    }
    if (!empty($_GET["id"])) {
        ?>
		<table width="100%" align="center">
			<tr>
				<td class="textInfo" colspan="2" valign="top">
					<?php 
        print htmlspecialchars(get_graph_title($_GET["id"]));
        ?>
				</td>
				<td class="textInfo" align="right" valign="top">
                    <?php 
        /* modify for multi user start */
        if ($_SESSION["permission"] == ACCESS_ADMINISTRATOR) {
            ?>
					<span style="color: #c16921;">*<a href='<?php 
            print htmlspecialchars("graphs.php?action=graph_edit&id=" . (isset($_GET["id"]) ? $_GET["id"] : "0") . "&debug=" . (isset($_SESSION["graph_debug_mode"]) ? "0" : "1"));
            ?>
'>Turn <strong><?php 
            print isset($_SESSION["graph_debug_mode"]) ? "Off" : "On";
            ?>
</strong> Graph Debug Mode.</a></span><br>
					<?php 
        }
        if (!empty($graphs["graph_template_id"]) && $_SESSION["permission"] == ACCESS_ADMINISTRATOR) {
            ?>
<span style="color: #c16921;">*<a href='<?php 
            print htmlspecialchars("graph_templates.php?action=template_edit&id=" . (isset($graphs["graph_template_id"]) ? $graphs["graph_template_id"] : "0"));
            ?>
'>Edit Graph Template.</a></span><br><?php 
        }
        /* modify for multi user end */
        if (!empty($_GET["host_id"]) || !empty($host_id)) {
            ?>
<span style="color: #c16921;">*<a href='<?php 
            print htmlspecialchars("host.php?action=edit&id=" . (isset($_GET["host_id"]) ? $_GET["host_id"] : $host_id));
            ?>
'>Edit Host.</a></span><br><?php 
        }
        ?>
				</td>
			</tr>
		</table>
		<br>
		<?php 
    }
    html_start_box("<strong>Graph Template Selection</strong> {$header_label}", "100%", $colors["header"], "3", "center", "");
    $form_array = array("graph_template_id" => array("method" => "drop_sql", "friendly_name" => "Selected Graph Template", "description" => "Choose a graph template to apply to this graph. Please note that graph data may be lost if you change the graph template after one is already applied.", "value" => isset($graphs) ? $graphs["graph_template_id"] : "0", "none_value" => "None", "sql" => "select graph_templates.id,graph_templates.name from graph_templates order by name"), "host_id" => array("method" => "drop_sql", "friendly_name" => "Host", "description" => "Choose the host that this graph belongs to.", "value" => isset($_GET["host_id"]) ? $_GET["host_id"] : $host_id, "none_value" => "None", "sql" => "select id,CONCAT_WS('',description,' (',hostname,')') as name from host order by description,hostname"), "graph_template_graph_id" => array("method" => "hidden", "value" => isset($graphs) ? $graphs["id"] : "0"), "local_graph_id" => array("method" => "hidden", "value" => isset($graphs) ? $graphs["local_graph_id"] : "0"), "local_graph_template_graph_id" => array("method" => "hidden", "value" => isset($graphs) ? $graphs["local_graph_template_graph_id"] : "0"), "_graph_template_id" => array("method" => "hidden", "value" => isset($graphs) ? $graphs["graph_template_id"] : "0"), "_host_id" => array("method" => "hidden", "value" => isset($host_id) ? $host_id : "0"));
    /* modify for multi user start */
    if ($_SESSION["permission"] < ACCESS_ADMINISTRATOR) {
        unset($form_array["graph_template_id"]["none_value"]);
        $form_array["graph_template_id"]["sql"] = "SELECT graph_templates.id,graph_templates.name FROM graph_templates WHERE name NOT LIKE '%@system' ORDER BY name";
        unset($form_array["host_id"]["none_value"]);
        $form_array["host_id"]["sql"] = "\r\n            SELECT host.id,CONCAT_WS('',host.description,' (',host.hostname,')') AS name FROM host \r\n                INNER JOIN user_auth_perms ON host.id = user_auth_perms.item_id AND user_auth_perms.user_id = '" . $_SESSION["sess_user_id"] . "' AND user_auth_perms.type = '3' \r\n            ORDER BY host.description,host.hostname";
    }
    /* modify for multi user end */
    draw_edit_form(array("config" => array(), "fields" => $form_array));
    html_end_box();
    /* only display the "inputs" area if we are using a graph template for this graph */
    if (!empty($graphs["graph_template_id"])) {
        html_start_box("<strong>Supplemental Graph Template Data</strong>", "100%", $colors["header"], "3", "center", "");
        draw_nontemplated_fields_graph($graphs["graph_template_id"], $graphs, "|field|", "<strong>Graph Fields</strong>", true, true, 0);
        draw_nontemplated_fields_graph_item($graphs["graph_template_id"], $_GET["id"], "|field|_|id|", "<strong>Graph Item Fields</strong>", true);
        html_end_box();
    }
    /* graph item list goes here */
    if (!empty($_GET["id"]) && empty($graphs["graph_template_id"])) {
        item();
    }
    if (!empty($_GET["id"])) {
        ?>
		<table width="100%" align="center">
			<tr>
				<td align="center" class="textInfo" colspan="2">
					<img src="<?php 
        print htmlspecialchars("graph_image.php?action=edit&local_graph_id=" . $_GET["id"] . "&rra_id=" . read_graph_config_option("default_rra_id"));
        ?>
" alt="">
				</td>
				<?php 
        if (isset($_SESSION["graph_debug_mode"]) && isset($_GET["id"])) {
            $graph_data_array["output_flag"] = RRDTOOL_OUTPUT_STDERR;
            $graph_data_array["print_source"] = 1;
            ?>
					<td>
						<span class="textInfo">RRDTool Command:</span><br>
						<pre><?php 
            print @rrdtool_function_graph($_GET["id"], 1, $graph_data_array);
            ?>
</pre>
						<span class="textInfo">RRDTool Says:</span><br>
						<?php 
            unset($graph_data_array["print_source"]);
            ?>
						<pre><?php 
            print @rrdtool_function_graph($_GET["id"], 1, $graph_data_array);
            ?>
</pre>
					</td>
					<?php 
        }
        ?>
			</tr>
		</table>
		<br>
		<?php 
    }
    if ((isset($_GET["id"]) || isset($_GET["new"])) && empty($graphs["graph_template_id"])) {
        html_start_box("<strong>Graph Configuration</strong>", "100%", $colors["header"], "3", "center", "");
        $form_array = array();
        while (list($field_name, $field_array) = each($struct_graph)) {
            $form_array += array($field_name => $struct_graph[$field_name]);
            $form_array[$field_name]["value"] = isset($graphs) ? $graphs[$field_name] : "";
            $form_array[$field_name]["form_id"] = isset($graphs) ? $graphs["id"] : "0";
            if (!($use_graph_template == false || $graphs_template["t_" . $field_name] == "on")) {
                $form_array[$field_name]["method"] = "template_" . $form_array[$field_name]["method"];
                $form_array[$field_name]["description"] = "";
            }
        }
        draw_edit_form(array("config" => array("no_form_tag" => true), "fields" => $form_array));
        html_end_box();
    }
    if (isset($_GET["id"]) || isset($_GET["new"])) {
        form_hidden_box("save_component_graph", "1", "");
        form_hidden_box("save_component_input", "1", "");
    } else {
        form_hidden_box("save_component_graph_new", "1", "");
    }
    form_hidden_box("rrdtool_version", read_config_option("rrdtool_version"), "");
    form_save_button("graphs.php");
    //Now we need some javascript to make it dynamic
    ?>
<script language="JavaScript">

dynamic();

function dynamic() {
	//alert("RRDTool Version is '" + document.getElementById('rrdtool_version').value + "'");
	//alert("Log is '" + document.getElementById('auto_scale_log').checked + "'");
	if (document.getElementById('scale_log_units')) {
		document.getElementById('scale_log_units').disabled=true;
		if ((document.getElementById('rrdtool_version').value != 'rrd-1.0.x') &&
			(document.getElementById('auto_scale_log').checked)) {
			document.getElementById('scale_log_units').disabled=false;
		}
	}
}

function changeScaleLog() {
	//alert("Log changed to '" + document.getElementById('auto_scale_log').checked + "'");
	if (document.getElementById('scale_log_units')) {
		document.getElementById('scale_log_units').disabled=true;
		if ((document.getElementById('rrdtool_version').value != 'rrd-1.0.x') &&
			(document.getElementById('auto_scale_log').checked)) {
			document.getElementById('scale_log_units').disabled=false;
		}
	}
}
</script>
<?php 
}
Example #26
0
#item ("network_security", "Let pirates bite the dust.", "");
item("old_and_sluggish", "Windows'unuz neden gün geçtikçe yavaşlar?", "_tr");
item("environment", "Çevre için de bir şeyler yapın.", "_tr");
item("backdoors", "Yazılımda kapalı kapılara hayır!", "_tr");
item("help", "Ücretsiz ve sınırsız desteğin keyfini çıkarın.", "_tr");
item("virtual_desktops", "Çok fazla mı pencere var? Çoklu masaüstü kullanın.", "_tr");
item("categories", "Başlat menünüzde kaybolmayın.", "_tr");
#item ("suspend_hibernate", "Enerji tasarrufu yapın: bilgisayarınızı uyku moduna geçirin", "");
item("report_bugs", "Hataların düzelmesi için yıllarca beklemeyin, bildirin ve takip edin.", "_tr");
item("reboot_all_the_time", "Bilgisayarınızı sürekli baştan başlatmaktan sıkıldınız mı?", "_t\tr");
item("alive", "Eski bilgisayarınız ikinci baharını yaşasın.", "_tr");
item("free_games", "Yüzlerce oyunu ücretsiz oynayın.", "_tr");
item("other_countries", "Kendi ülkenize ve diğer ülkelere yardım edin.", "_tr");
item("gaim_im_services", "MSN, AIM, ICQ veya Jabber' a tek bir yazılımla bağlanın.", "_tr");
item("amarok", "Mükemmel bir müzik çalıcınız olsun.", "_tr");
item("weather", "Havadan sudan haberiniz olsun.", "_tr");
?>
</p>
</div>

<br class="clearboth" />

<h2>(şimdilik) Windows'a bağlı kalmanızı gerektirecek birkaç konu</h2>

<div id="items">
<p>

<div class="item">
<a href="stick_to_windows/software/index_tr.php">
<img src="stick_to_windows/software/Images/hang_thumbnail.png" />
<p>Olmazsa olmaz bir yazılım sadece o platformda çalışıyor</p></a>
	//print_R($_GET);print_R($_POST);//exit;
	global $db;
	$入库数量 = (int)$_POST['入库数量'];$教材编号 = $_POST['教材编号'];
	$sql = "update edu_jiaocai set 现有库存=现有库存+$入库数量 where 教材编号='".$教材编号."'";
	$rs = $db->Execute($sql);//print $sql;exit;
	$_POST['编作者'] = returntablefield("edu_jiaocai","教材编号",$教材编号,"编作者");
	$_POST['出版社'] = returntablefield("edu_jiaocai","教材编号",$教材编号,"出版社");
	//print  "<META HTTP-EQUIV=REFRESH CONTENT='0;URL=?'>";
}
*/
//数据表模型文件,对应Model目录下面的hrms_salary_tongji_newai.ini文件
//如果是需要复制此模块,则需要修改$parse_filename参数的值,然后对应到Model目录 新文件名_newai.ini文件
$filetablename = 'hrms_salary_tongji';
$parse_filename = 'hrms_salary_tongji';
require_once 'include.inc.php';
$工资项目 = item();
$g = sizeof($工资项目);
$g += 2;
echo '<div id=MainData0>';
echo '<table width="100%" class="TableBlock" align="center"><thead>';
echo '<tr class="TableHeader" align="center"><td colspan=' . $g . '>' . date('Y') . '年' . date('m') . '月薪酬统计&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td></tr>';
//<a href="send_salary_email_result.php">发送工资条</a>
echo '<tr class="TableHeader" align="center">';
echo '<td>部门</td>';
echo '<td>姓名</td>';
//print_r($工资项目);
for ($i = 0; $i < sizeof($工资项目); $i++) {
    echo '<td>';
    echo $工资项目[$i]['费用名称'];
    echo '</td>';
}
Example #28
0
#item ("network_security", "Dejemos que los piratas muerdan el polvo.", "_es");
item("old_and_sluggish", "¿Por qué tu Windows es más lento cada día?", "_es");
item("environment", "Haz algo por el entorno.", "_es");
item("backdoors", "Sin puertas traseras en tu software.", "_es");
item("help", "Disfruta de soporte gratis e ilimitado.", "_es");
item("virtual_desktops", "¿Demasiadas ventanas? Usa las distintas áreas de trabajo.", "_es");
item("categories", "Sin desastres en tu menú principal.", "_es");
#item ("suspend_hibernate", "Save some energy: let your computer sleep or hibernate.", "_es");
item("report_bugs", "No esperes años a que se arreglen los fallos, comunicalos y sigue su solución.", "_es");
item("reboot_all_the_time", "¿Estás cansado de reiniciar tu ordenador continuamente?", "_es");
item("alive", "Deja que tu viejo ordenador tenga una segunda vida.", "_es");
item("free_games", "Juega gratis a cientos de juegos.", "_es");
item("other_countries", "Ayuda a otros países y al tuyo propio.", "_es");
item("gaim_im_services", "Usa MSN, AIM, ICQ, Jabber, con un único programa.", "_es");
item("amarok", "Consigue un gran reproductor musical.", "_es");
item("weather", "Mantente al tanto del tiempo.", "_es");
?>
</p>
</div>

<br class="clearboth" />

<h2>Los pocos casos donde deberías quedarte con Windows (por ahora)</h2>

<div id="items">
<p>

<div class="item">
<a href="stick_to_windows/software/index_es.php">
<img src="stick_to_windows/software/Images/hang_thumbnail.png" />
<p>Existe un programa propietario sin el que no puedes vivir</p></a>
Example #29
0
function graph_edit() {
	global $colors, $struct_graph, $image_types, $consolidation_functions, $graph_item_types, $struct_graph_item;

	/* ================= input validation ================= */
	input_validate_input_number(get_request_var("id"));
	/* ==================================================== */

	$use_graph_template = true;

	if (!empty($_GET["id"])) {
		$local_graph_template_graph_id = db_fetch_cell("select local_graph_template_graph_id from graph_templates_graph where local_graph_id=" . $_GET["id"]);

		$graphs = db_fetch_row("select * from graph_templates_graph where local_graph_id=" . $_GET["id"]);
		$graphs_template = db_fetch_row("select * from graph_templates_graph where id=$local_graph_template_graph_id");

		$host_id = db_fetch_cell("select host_id from graph_local where id=" . $_GET["id"]);
		$header_label = "[edit: " . get_graph_title($_GET["id"]) . "]";

		if ($graphs["graph_template_id"] == "0") {
			$use_graph_template = false;
		}
	}else{
		$header_label = "[new]";
		$use_graph_template = false;
	}

	/* handle debug mode */
	if (isset($_GET["debug"])) {
		if ($_GET["debug"] == "0") {
			kill_session_var("graph_debug_mode");
		}elseif ($_GET["debug"] == "1") {
			$_SESSION["graph_debug_mode"] = true;
		}
	}

	if (!empty($_GET["id"])) {
		?>
		<table width="100%" align="center">
			<tr>
				<td class="textInfo" colspan="2" valign="top">
					<?php print get_graph_title($_GET["id"]);?>
				</td>
				<td class="textInfo" align="right" valign="top">
					<span style="color: #c16921;">*<a href='graphs.php?action=graph_edit&id=<?php print (isset($_GET["id"]) ? $_GET["id"] : 0);?>&debug=<?php print (isset($_SESSION["graph_debug_mode"]) ? "0" : "1");?>'>Turn <strong><?php print (isset($_SESSION["graph_debug_mode"]) ? "Off" : "On");?></strong> Graph Debug Mode.</a><br>
					<?php
						if (!empty($graphs["graph_template_id"])) {
							?><span style="color: #c16921;">*<a href='graph_templates.php?action=template_edit&id=<?php print (isset($graphs["graph_template_id"]) ? $graphs["graph_template_id"] : "0");?>'>Edit Graph Template.</a><br><?php
						}
						if (!empty($_GET["host_id"]) || !empty($host_id)) {
							?><span style="color: #c16921;">*<a href='host.php?action=edit&id=<?php print (isset($_GET["host_id"]) ? $_GET["host_id"] : $host_id);?>'>Edit Host.</a><br><?php
						}
					?>
				</td>
			</tr>
		</table>
		<br>
		<?php
	}

	html_start_box("<strong>Graph Template Selection</strong> $header_label", "100%", $colors["header"], "3", "center", "");

	$form_array = array(
		"graph_template_id" => array(
			"method" => "drop_sql",
			"friendly_name" => "Selected Graph Template",
			"description" => "Choose a graph template to apply to this graph. Please note that graph data may be lost if you change the graph template after one is already applied.",
			"value" => (isset($graphs) ? $graphs["graph_template_id"] : "0"),
			"none_value" => "None",
			"sql" => "select graph_templates.id,graph_templates.name from graph_templates order by name"
			),
		"host_id" => array(
			"method" => "drop_sql",
			"friendly_name" => "Host",
			"description" => "Choose the host that this graph belongs to.",
			"value" => (isset($_GET["host_id"]) ? $_GET["host_id"] : $host_id),
			"none_value" => "None",
			"sql" => "select id,CONCAT_WS('',description,' (',hostname,')') as name from host order by description,hostname"
			),
		"graph_template_graph_id" => array(
			"method" => "hidden",
			"value" => (isset($graphs) ? $graphs["id"] : "0")
			),
		"local_graph_id" => array(
			"method" => "hidden",
			"value" => (isset($graphs) ? $graphs["local_graph_id"] : "0")
			),
		"local_graph_template_graph_id" => array(
			"method" => "hidden",
			"value" => (isset($graphs) ? $graphs["local_graph_template_graph_id"] : "0")
			),
		"_graph_template_id" => array(
			"method" => "hidden",
			"value" => (isset($graphs) ? $graphs["graph_template_id"] : "0")
			),
		"_host_id" => array(
			"method" => "hidden",
			"value" => (isset($host_id) ? $host_id : "0")
			)
		);

	draw_edit_form(
		array(
			"config" => array(),
			"fields" => $form_array
			)
		);

	html_end_box();

	/* only display the "inputs" area if we are using a graph template for this graph */
	if (!empty($graphs["graph_template_id"])) {
		html_start_box("<strong>Supplemental Graph Template Data</strong>", "100%", $colors["header"], "3", "center", "");

		print "<form method='post' action='graphs.php'>\n";

		draw_nontemplated_fields_graph($graphs["graph_template_id"], $graphs, "|field|", "<strong>Graph Fields</strong>", true, true, 0);
		draw_nontemplated_fields_graph_item($graphs["graph_template_id"], $_GET["id"], "|field|_|id|", "<strong>Graph Item Fields</strong>", true);

		html_end_box();
	}

	/* graph item list goes here */
	if ((!empty($_GET["id"])) && (empty($graphs["graph_template_id"]))) {
		item();
	}

	if (!empty($_GET["id"])) {
		?>
		<table width="100%" align="center">
			<tr>
				<td align="center" class="textInfo" colspan="2">
					<img src="graph_image.php?action=edit&local_graph_id=<?php print $_GET["id"];?>&rra_id=<?php print read_graph_config_option("default_rra_id");?>" alt="">
				</td>
				<?php
				if ((isset($_SESSION["graph_debug_mode"])) && (isset($_GET["id"]))) {
					$graph_data_array["output_flag"] = RRDTOOL_OUTPUT_STDERR;
					$graph_data_array["print_source"] = 1;
					?>
					<td>
						<span class="textInfo">RRDTool Command:</span><br>
						<pre><?php print rrdtool_function_graph($_GET["id"], 1, $graph_data_array);?></pre>
						<span class="textInfo">RRDTool Says:</span><br>
						<?php unset($graph_data_array["print_source"]);?>
						<pre><?php print rrdtool_function_graph($_GET["id"], 1, $graph_data_array);?></pre>
					</td>
					<?php
				}
				?>
			</tr>
		</table>
		<br>
		<?php
	}

	if (((isset($_GET["id"])) || (isset($_GET["new"]))) && (empty($graphs["graph_template_id"]))) {
		html_start_box("<strong>Graph Configuration</strong>", "100%", $colors["header"], "3", "center", "");

		$form_array = array();

		while (list($field_name, $field_array) = each($struct_graph)) {
			$form_array += array($field_name => $struct_graph[$field_name]);

			$form_array[$field_name]["value"] = (isset($graphs) ? $graphs[$field_name] : "");
			$form_array[$field_name]["form_id"] = (isset($graphs) ? $graphs["id"] : "0");

			if (!(($use_graph_template == false) || ($graphs_template{"t_" . $field_name} == "on"))) {
				$form_array[$field_name]["method"] = "template_" . $form_array[$field_name]["method"];
				$form_array[$field_name]["description"] = "";
			}
		}

		draw_edit_form(
			array(
				"config" => array(
					"no_form_tag" => true
					),
				"fields" => $form_array
				)
			);

		html_end_box();
	}

	if ((isset($_GET["id"])) || (isset($_GET["new"]))) {
		form_hidden_box("save_component_graph","1","");
		form_hidden_box("save_component_input","1","");
	}else{
		form_hidden_box("save_component_graph_new","1","");
	}

	form_hidden_box("rrdtool_version", read_config_option("rrdtool_version"), "");
	form_save_button("graphs.php");

//Now we need some javascript to make it dynamic
?>
<script language="JavaScript">

dynamic();

function dynamic() {
	//alert("RRDTool Version is '" + document.getElementById('rrdtool_version').value + "'");
	//alert("Log is '" + document.getElementById('auto_scale_log').checked + "'");
	if (document.getElementById('scale_log_units')) {
		document.getElementById('scale_log_units').disabled=true;
		if ((document.getElementById('rrdtool_version').value != 'rrd-1.0.x') &&
			(document.getElementById('auto_scale_log').checked)) {
			document.getElementById('scale_log_units').disabled=false;
		}
	}
}

function changeScaleLog() {
	//alert("Log changed to '" + document.getElementById('auto_scale_log').checked + "'");
	if (document.getElementById('scale_log_units')) {
		document.getElementById('scale_log_units').disabled=true;
		if ((document.getElementById('rrdtool_version').value != 'rrd-1.0.x') &&
			(document.getElementById('auto_scale_log').checked)) {
			document.getElementById('scale_log_units').disabled=false;
		}
	}
}
</script>
<?php

}
Example #30
0
#item ("network_security", "Пусть злоумышленники отдыхают.", "_ru");
item("old_and_sluggish", "Почему ваш Windows работает медленнее с каждым днём?", "_ru");
item("environment", "Сделайте свой вклад в окружающую среду.", "_ru");
item("backdoors", "Никаких ''скрытых ходов'' в вашем ПО.", "_ru");
item("help", "Пользуйтесь бесплатной, неограниченной поддержкой.", "_ru");
item("virtual_desktops", "Слишком много окон? Используйте виртуальные рабочие столы.", "_ru");
item("categories", "Скажите “нет” беспорядку в вашем меню.", "_ru");
#item ("suspend_hibernate", "Сохраняйте энергию с помощью функций \"sleep\" и \"hibernate\".", "_ru");
item("report_bugs", "Не ждите годы, пока ошибки будут исправлены - сообщайте и отслеживайте их.", "_ru");
item("reboot_all_the_time", "Вы устали постоянно перезагружать компьютер?", "_ru");
item("alive", "Дайте вашему старому компьютеру вторую жизнь.", "_ru");
item("free_games", "Играйте в сотни свободных игр.", "_ru");
item("other_countries", "Помогите другим странам, а равно и вашей.", "_ru");
item("gaim_im_services", "Общайтесь в MSN, AIM, ICQ, Jabber с помощью одной программы.", "_ru");
item("amarok", "Получите отличный музыкальный проигрыватель.", "_ru");
item("weather", "Следите за погодой.", "_ru");
?>
</p>
</div>

<br class="clearboth" />

<h2>Те немногие случаи, когда вам лучше остаться с Windows (пока что)</h2>

<div id="items">
<p>

<div class="item">
<a href="stick_to_windows/software/index_ru.php">
<img src="stick_to_windows/software/Images/hang.png" />
<p>Вы не представляете себе жизни без каких-либо проприетарных программ</p></a>