コード例 #1
0
function Birthday2vCal($date, $age)
{
    global $id, $firstname, $middlename, $lastname, $email, $email2, $email3, $home, $mobile, $work, $byear;
    echo "BEGIN:VEVENT\r\n";
    echo "UID:" . date('Y', $date) . $id . "@php-addressbook.sourceforge.net\r\n";
    echo "DTSTART;VALUE=DATE:" . date("Ymd", $date) . "\r\n";
    echo "DTEND;VALUE=DATE:" . date("Ymd", $date + 24 * 3600) . "\r\n";
    echo "DTSTAMP:" . date("Ymd\\THi00\\Z") . "\r\n";
    echo "CREATED:" . date("Ymd\\THi00\\Z") . "\r\n";
    echo "LAST-MODIFIED:" . date("Ymd\\THi00\\Z") . "\r\n";
    echo "LOCATION:\r\n";
    echo "STATUS:CONFIRMED\r\n";
    if ($age == -1) {
        $age = "";
    } else {
        $age = "(" . $age . ")";
    }
    echo "SUMMARY:" . ucfmsg("BIRTHDAY") . " " . trim($firstname . (isset($middlename) ? " " . $middlename : "") . " " . $lastname) . " " . $age . "\r\n";
    echo "DESCRIPTION:Mail:\\n- " . $email . "\\n- " . $email2 . "\\n- " . $email3 . "\\n\\n" . ucfmsg("TELEPHONE") . ($home != "" ? "\\n- " . $home : "") . ($mobile != "" ? "\\n- " . $mobile : "") . ($work != "" ? "\\n- " . $work : "") . "\r\n";
    echo "CLASS:PRIVATE\r\n";
    echo "END:VEVENT\r\n";
}
コード例 #2
0
	<body>
		<div id="container">
			<div id="top">

<?php 
if (isset($userlist)) {
    ?>
<form name="logout" method="post" class="header">
<input type="hidden" name="logout" value="yes" />
<?php 
    if (isset($username)) {
        echo "<b>(" . $username . ")</b> ";
    }
    ?>
<a href="#" onClick="document.logout.submit();"><?php 
    echo ucfmsg("LOGOUT");
    ?>
</a>
</form>
<?php 
} else {
    echo "<b>(" . $_SERVER['REMOTE_ADDR'] . ")</b>";
}
?>
			</div>
			<div id="header">
				<h1><a href=".">Address Book</a></h1>
				<a href="."><img src="<?php 
echo $url_images;
?>
title_x2.png" width=340 height=75 title="Addressbook" alt="Addressbook" id="logo" /></a>
コード例 #3
0
ファイル: group.php プロジェクト: karanikn/php-addressbook
                                    if ($myrow['parent_name'] != "") {
                                        echo $myrow['group_name'] . " <i>(" . $myrow['parent_name'] . ")</i><br />";
                                    } else {
                                        echo $myrow['group_name'] . "<br />";
                                    }
                                }
                                ?>
<br />
  <input type="submit" name="new" value="<?php 
                                echo ucfmsg('NEW_GROUP');
                                ?>
" />
	<input type="submit" name="delete" value="<?php 
                                echo ucfmsg('DELETE_GROUPS');
                                ?>
" />
	<input type="submit" name="edit" value="<?php 
                                echo ucfmsg('EDIT_GROUP');
                                ?>
" />
</form>
<?php 
                            }
                        }
                    }
                }
            }
        }
    }
}
include "include/footer.inc.php";
コード例 #4
0
ファイル: csv.php プロジェクト: karanikn/php-addressbook
# Home contact
add(ucfmsg("ADDRESS"));
if ($zip_pattern != "") {
    add(ucfmsg("ZIP"));
    add(ucfmsg("CITY"));
}
add(ucfmsg("PHONE_HOME"));
add(ucfmsg("PHONE_MOBILE"));
add(ucfmsg("E_MAIL_HOME"));
# Work contact
add(ucfmsg("PHONE_WORK"));
add(ucfmsg("FAX"));
add(ucfmsg("E_MAIL_OFFICE"));
# 2nd contact
add(ucfmsg("2ND_ADDRESS"));
add(ucfmsg("2ND_PHONE"));
if ($use_utf_16LE) {
    print mb_convert_encoding("\n", 'UTF-16LE', 'UTF-8');
} else {
    echo "\r\n";
}
while ($myrow = mysql_fetch_array($result)) {
    # Name + Geburtstag
    add($myrow["lastname"], true);
    add($myrow["firstname"]);
    $day = $myrow["bday"];
    $year = $myrow["byear"];
    if (false) {
        // $month  = $myrow["bmonth"];
        add(($day > 0 ? "{$day}. " : "") . ($month != null ? $month : "") . " {$year}");
    } else {
コード例 #5
0
ファイル: install.php プロジェクト: karanikn/php-addressbook
    $sql_ddl = implode($sql_ddl_arr_pfx);
    $sql_ddl_arr = explode(";", $sql_ddl);
    foreach ($sql_ddl_arr as $sql) {
        mysql_query($sql);
    }
    // Keep the variables for the first run :-)
    $dbserver = $_POST['db_host'];
    $dbname = $_POST['db_name'];
    $dbuser = $_POST['db_user'];
    $dbpass = $_POST['db_pass'];
    $table_prefix = $_POST['db_tbl_prefix'];
    $keep_history = !($_POST['db_hist'] == "");
}
if (!$db) {
    include "include/format.inc.php";
    echo "<title>" . ucfmsg("ADDRESS_BOOK") . "</title>";
    ?>
  	</head>
  	<body>
  		<div id="container">
  			<div id="top"></div>
        <div id="header"><a href="."><img width="340" height="75" src="title_x2.png" title="%ADDRESS_BOOK%" alt="%ADDRESS_BOOK%" /></a></div>
  			<div id="nav"></div>
  			<div id="content">
  	      <form accept-charset="utf-8" method="post">
            <label>Host: </label><input name='db_host' value='<?php 
    echo isset($_POST['db_host']) ? $_POST['db_host'] : 'localhost';
    ?>
'><br>
            <label>Name: </label><input name='db_name' value='<?php 
    echo isset($_POST['db_name']) ? $_POST['db_name'] : 'test';
コード例 #6
0
<?php

$name_of_months = array('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December');
$name_of_months_langs = array();
foreach ($name_of_months as $name_of_month) {
    $name_of_months_langs[] = strtoupper(ucfmsg(strtoupper($name_of_month)));
}
class Birthday
{
    var $today;
    // Today's date
    var $day;
    // 1-31, -1 = undefined
    var $month;
    // 1-12, -1 = undefined
    var $year;
    // xxxx, -1 = undefined
    var $prefix = "";
    function __construct()
    {
        $this->day = -1;
        $this->month = -1;
        $this->year = -1;
        $this->today = time();
        //
        //  Three different constructors
        //
        $num = func_num_args();
        $args = func_get_args();
        switch ($num) {
            case 0:
コード例 #7
0
$headers = array(0 => "Name", 1 => "Vorname", 2 => "Weitere Vornamen", 3 => "Nachname", 4 => "Namenszusatz", 5 => "Position", 6 => "Firma", 7 => "Geburtstag", 8 => "SIP-Adresse", 9 => "Push-to-talk", 10 => "Gemeinsame Ansicht", 11 => "Benutzer-ID", 12 => "Notizen", 13 => "Mobiltelefon, allgemein", 14 => "Telefon, allgemein", 15 => "E-Mail, allgemein", 16 => "Fax, allgemein", 17 => "Videoanruf, allgemein", 18 => "Webadresse, allgemein", 19 => "VoIP-Adresse, allgemein", 20 => "Postfach, allgemein", 21 => "Durchwahl, allgemein", 22 => "Straße, allgemein", 23 => "Postleitzahl, allgemein", 24 => "Stadt, allgemein", 25 => "Bundesland, allgemein", 26 => "Land/Region, allgemein", 27 => "Mobiltelefon, privat", 28 => "Telefon, privat", 29 => "E-Mail, privat", 30 => "Fax, privat", 31 => "Videoanruf, privat", 32 => "Webadresse, privat", 33 => "VoIP-Adresse, privat", 34 => "Postfach, privat", 35 => "Durchwahl, privat", 36 => "Straße, privat", 37 => "Postleitzahl, privat", 38 => "Stadt, privat", 39 => "Bundesland, privat", 40 => "Land/Region, privat", 41 => "Mobiltelefon, geschäftlich", 42 => "Telefon, geschäftlich", 43 => "E-Mail, geschäftlich", 44 => "Fax, geschäftlich", 45 => "Videoanruf, geschäftlich", 46 => "Webadresse, geschäftlich", 47 => "VoIP-Adresse, geschäftlich", 48 => "Postfach, geschäftlich", 49 => "Durchwahl, geschäftlich", 50 => "Straße, geschäftlich", 51 => "Postleitzahl, geschäftlich", 52 => "Stadt, geschäftlich", 53 => "Bundesland, geschäftlich", 54 => "Land/Region, geschäftlich");
add(ucfmsg($headers[0]), true);
for ($i = 1; $i < count($headers); $i++) {
    add(ucfmsg(utf8_encode($headers[$i])));
}
if ($use_utf_16LE) {
    print mb_convert_encoding("\r\n", 'UTF-16LE', 'UTF-8');
} else {
    echo "\r\n";
}
while ($myrow = mysql_fetch_array($result)) {
    $rec = array();
    # name + birthday
    // $rec[3] = $myrow["lastname"]." ".$myrow["firstname"];
    $rec[3] = $myrow["lastname"];
    $rec[1] = $myrow["firstname"];
    $rec[0] = $myrow["firstname"] . (!empty($myrow["middlename"]) ? " " . $myrow["middlename"] : "") . " " . $myrow["lastname"];
    # phone numbers
    $rec[13] = $myrow["home"];
    $rec[14] = $myrow["mobile"];
    $rec[28] = $myrow["email"];
    add(ucfmsg(""), true);
    for ($i = 1; $i < count($headers); $i++) {
        add(isset($rec[$i]) ? $rec[$i] : "");
    }
    if ($use_utf_16LE) {
        print mb_convert_encoding("\r\n", 'UTF-16LE', 'UTF-8');
    } else {
        echo "\r\n";
    }
}
コード例 #8
0
ファイル: view.php プロジェクト: karanikn/php-addressbook
    <input type="submit" name="print" value="<?php 
            echo ucfmsg('PRINT');
            ?>
" />
</form>

<?php 
        }
    }
} else {
    if (isset($_REQUEST['all'])) {
        include "include/view.w.php";
        $sql = "SELECT * FROM {$base_from_where} order by lastname, firstname";
        $result = mysql_query($sql, $db);
        $cnt = 0;
        echo "<h1>" . ucfmsg('ADDRESS_BOOK') . ($group ? " " . msg('FOR') . " <i>{$group}</i></h1>" : "</h1>");
        ?>
   <table id="view">

   <?php 
        $only_phones = isset($_REQUEST['phones']);
        $addr_per_line = $only_phones ? 4 : 3;
        while ($r = mysql_fetch_array($result)) {
            $r = trimAll($r);
            $address = new Address($r);
            if ($address->hasPhone() || !$only_phones) {
                if ($cnt % (2 * $addr_per_line) == 0) {
                    echo "<tr class='odd'>";
                }
                if ($cnt % (2 * $addr_per_line) == $addr_per_line) {
                    echo "<tr class='even'>";
コード例 #9
0
ファイル: map.php プロジェクト: karanikn/php-addressbook
<?php

include "include/dbconnect.php";
include "include/format.inc.php";
?>
<title><?php 
echo ucfmsg("ADDRESS_BOOK") . ($group_name != "" ? " ({$group_name})" : "");
?>
</title>
<?php 
include "include/header.inc.php";
// Check if we have a key for this domain?
if (!isset($google_maps_key) || $google_maps_key == "") {
    $google_maps_key = "";
    if (isset($google_maps_keys)) {
        foreach ($google_maps_keys as $domain => $key) {
            if (str_replace($domain, "", $_SERVER['SERVER_NAME']) . $domain == $_SERVER['SERVER_NAME']) {
                $google_maps_key = $key;
            }
        }
    }
}
$delay = 200000;
// usecs before each fetching
$base_url = "http://maps.google.ch/maps/geo?output=csv&key=" . $google_maps_key;
$first_fetch = true;
$cache_write = true;
$has_620 = false;
$single_address = false;
$addresses = Addresses::withSearchString($searchstring, $alphabet);
$result = $addresses->getResults();
コード例 #10
0
ファイル: view.w.php プロジェクト: karanikn/php-addressbook
function showOneEntry($r, $only_phone = false)
{
    global $db, $table, $table_grp_adr, $table_groups, $print, $is_fix_group, $mail_as_image, $page_ext_qry;
    $view = "";
    $view .= add("<b>" . $r['firstname'] . (!empty($r['middlename']) ? " " . $r['middlename'] : "") . " " . $r['lastname'] . "</b>");
    $view .= add($r['nickname']);
    $b64 = explode(";", $r['photo']);
    if (count($b64) >= 3 && !$only_phone) {
        $b64 = $b64[2];
        $b64 = explode(":", $b64);
        if (count($b64) >= 2) {
            $b64 = str_replace(" ", "", $b64[1]);
            $view .= $r['photo'] != "" ? '<img alt="Embedded Image" width=75 src="data:image/jpg;base64,' . $b64 . '"/><br>' : "";
        }
    }
    if (!$only_phone) {
        $view .= ($r['title'] != "" ? "<i>" : "") . add($r['title']) . ($r['title'] != "" ? "</i>" : "");
        $view .= add($r['company']);
        //     $view .= addGroup($r, array('address'));
        $view .= add(str_replace("\n", "<br />", trim($r["address"])));
        $view .= addGroup($r, array('home', 'mobile', 'work', 'fax'));
    }
    $view .= addPhone($r['home'], ucfmsg('H:'));
    $view .= addPhone($r['mobile'], ucfmsg('M:'));
    $view .= addPhone($r['work'], ucfmsg('W:'));
    $view .= addPhone($r['fax'], ucfmsg('F:'));
    if (!$only_phone) {
        $view .= addGroup($r, array('email', 'email2', 'email3', 'homepage'));
        if ($mail_as_image) {
            // B64IMG: Thanks to NelloD
            $view .= $r['email'] != "" ? "<img src=\"b64img.php?text=" . base64_encode($r['email']) . "\"><br/>" : "";
            $view .= $r['email2'] != "" ? "<img src=\"b64img.php?text=" . base64_encode($r['email2']) . "\"><br/>" : "";
            $view .= $r['email3'] != "" ? "<img src=\"b64img.php?text=" . base64_encode($r['email3']) . "\"><br/>" : "";
        } else {
            $view .= addEmail($r['email']);
            $view .= addEmail($r['email2']);
            $view .= addEmail($r['email3']);
        }
        $view .= addHomepage($r['homepage']);
        $view .= addGroup($r, array('bday', 'bmonth', 'byear'));
        $view .= addBirthday($r['bday'], $r['bmonth'], $r['byear'], ucfmsg('BIRTHDAY'));
        $view .= addBirthday($r['aday'], $r['amonth'], $r['ayear'], ucfmsg('ANNIVERSARY'));
        $view .= addGroup($r, array('address2', 'phone2'));
        $view .= add(str_replace("\n", "<br />", trim($r['address2'])));
        $view .= addGroup($r, array('phone2'));
    }
    $view .= add($r['phone2'], ucfmsg('P:'));
    if (!$only_phone) {
        // Detect URLs (http://*, www.*) and show as link.
        //
        // $text = "Hello, http://www.google.com";
        // $new = preg_replace("/(http:\/\/[^\s]+)/", "<a href=\"$1\">$1</a>", $test);
        //
        $view .= $r['notes'] != "" ? "<br />" . str_replace("\n", "<br />", trim($r['notes'])) . "<br /><br />" : "";
    }
    echo $view . "\n";
    if (!isset($print) and !$is_fix_group) {
        $sql = "SELECT DISTINCT {$table_groups}.group_id, group_name\n\t             FROM {$table_grp_adr}, {$table_groups}, {$table}\n\t            WHERE {$table}.id = {$table_grp_adr}.id\n\t              AND {$table}.id = " . $r['id'] . "\n\t              AND {$table_grp_adr}.group_id  = {$table_groups}.group_id";
        $result = mysql_query($sql, $db);
        $first = true;
        while ($result && ($g = mysql_fetch_array($result))) {
            if ($first) {
                echo "<br /><i>" . ucfmsg('MEMBER_OF') . ": ";
            } else {
                echo ", ";
            }
            echo "<a href='./index{$page_ext_qry}group=" . urlencode($g['group_name']) . "'>" . $g['group_name'] . "</a>";
            $first = false;
        }
        if ($first != true) {
            echo "</i>";
        }
        /*
        echo "<br/><br/>";
        echo ucfmsg('MODIFIED') . ": ".$r['modified'];
        echo "<i>(".ucfmsg('CREATED')  . ": ".$r['created'].")</i><br/>";
        */
    }
}
コード例 #11
0
ファイル: import.php プロジェクト: karanikn/php-addressbook
<?php

include "include/dbconnect.php";
include "include/format.inc.php";
?>
<title><?php 
echo ucfmsg("ADDRESS_BOOK") . ($group_name != "" ? " ({$group_name})" : "");
?>
</title>
<?php 
include "include/header.inc.php";
?>
 <h1><?php 
echo ucfmsg('IMPORT');
?>
</h1> 
<?php 
function getIfSet($ldif_record, $key)
{
    if (isset($ldif_record[$key])) {
        return $ldif_record[$key];
    } else {
        return "";
    }
}
if (!$submit) {
    ?>
<form method="post" enctype="multipart/form-data">
  <label size=50 for="file">LDIF/VCF/CSV/XLS:</label>
  <input size=40 type="file" name="file" id="file" /><br/>
  <input type="hidden" name="del_format" value="phpaddr">
コード例 #12
0
ファイル: export.php プロジェクト: karanikn/php-addressbook
        echo address2vcard($links);
    }
} elseif (isset($_REQUEST['type']) && $_REQUEST['type'] == "xls-Nokia") {
    require "include/export.xls-nokia.php";
} else {
    include "include/format.inc.php";
    ?>
<title><?php 
    echo ucfmsg("ADDRESS_BOOK") . ($group_name != "" ? " ({$group_name})" : "");
    ?>
</title>
<?php 
    include "include/header.inc.php";
    ?>
 <h1><?php 
    echo ucfmsg('EXPORT');
    ?>
</h1> 
 <h2>Addressbook</h2> 
<form>
  <label>vCards for Outlook:</label>
  <input type="hidden" name="type"   value="vCard-zip">
  <input type="submit" name="submit" value="Download">
</form>
<br>
<form>
  <label>All in one vCard:</label>
  <input type="hidden" name="type"   value="vCard-one">
  <input type="submit" name="submit" value="Download">
</form>
<br>
コード例 #13
0
function addRow($row)
{
    global $addr, $page_ext_qry, $url_images, $read_only, $map_guess, $full_phone, $homepage_guess;
    $myrow = $addr->getData();
    foreach ($myrow as $mycol => $mycolval) {
        ${$mycol} = $mycolval;
    }
    $email = $addr->firstEMail();
    if ($email != "" && $email != $myrow['email2']) {
        $email2 = $myrow['email2'];
    } else {
        $email2 = "";
    }
    // Special value for short phone
    $row = $row == "telephone" ? "phone" : $row;
    if ($row == "phone") {
        if ($full_phone) {
            $phone = $addr->firstPhone();
        } else {
            $phone = $addr->shortPhone();
        }
    }
    switch ($row) {
        case "select":
            $emails = implode(getMailerDelim(), $addr->getEMails());
            echo "<td class='center'><input type='checkbox' id='{$id}' name='selected[]' value='{$id}' title='Select ({$firstname} {$lastname})' alt='Select ({$firstname} {$lastname})' accept='{$emails}' /></td>";
            break;
        case "first_last":
            echo "<td>{$firstname} " . (!empty($middlename) ? $middlename . " " : "") . "{$lastname}</td>";
            break;
        case "last_first":
            echo "<td>" . (!empty($middlename) ? $middlename . " " : "") . "{$lastname} {$firstname}</td>";
            break;
        case "photo":
            //        echo "<td>".embeddedImg($photo)."</td>";
            /*
                    if($photo != "") {
                      echo "<td><img width=75 src='photo.php?id=".$id."'></td>";
                    } else {
                      echo "<td></td>";
                    }
            //*/
            echo "<td>";
            echo $addr->getPhoto();
            echo "</td>";
            break;
        case "email":
        case "email2":
            echo "<td><a href='" . getMailer() . "{${$row}}'>{${$row}}</a></td>";
            break;
        case "all_phones":
            $phones = $addr->shortPhones();
            echo "<td>" . implode("<br>", $phones) . "</td>";
            break;
        case "all_emails":
            $emails = $addr->getEMails();
            $amails = array();
            foreach ($emails as $amail) {
                $amails[] = "<a href='" . getMailer() . "{$amail}'>{$amail}</a>";
            }
            echo "<td>" . implode("<br>", $amails) . "</td>";
            break;
        case "address":
            echo "<td>" . str_replace("\n", "<br>", $address) . "</td>";
            break;
        case "edit":
            echo "<td class='center'><a href='view{$page_ext_qry}id={$id}'><img src='{$url_images}icons/status_online.png' title='" . ucfmsg('DETAILS') . "' alt='" . ucfmsg('DETAILS') . "' /></a></td>";
            if (!$read_only) {
                echo "<td class='center'><a href='edit{$page_ext_qry}id={$id}'><img src='{$url_images}icons/pencil.png' title='" . ucfmsg('EDIT') . "' alt='" . ucfmsg('EDIT') . "'/></a></td>";
            }
            break;
        case "vcard":
            echo "<td class='center'><a href='vcard{$page_ext_qry}id={$id}'><img src='{$url_images}icons/vcard.png' title='vCard' alt='vCard'/></a></td>";
            break;
        case "map":
            if ($map_guess) {
                if ($myrow["address"] != "") {
                    echo "<td class='center'><a href='http://maps.google.com/maps?q=" . urlencode(trim(str_replace("\r\n", ", ", trim($myrow["address"])))) . "&amp;t=h' target='_blank'>\n                                <img src='{$url_images}icons/car.png' title='Google Maps' alt='vCard'/></a></td>";
                } else {
                    echo "<td/>";
                }
            }
            break;
        case "homepage":
            if ($homepage != "") {
                $homepage = strcasecmp(substr($homepage, 0, strlen("http")), "http") == 0 ? $homepage : "http://" . $homepage;
                echo "<td class='center'><a href='{$homepage}'><img src='{$url_images}icons/house.png' title='{$homepage}' alt='{$homepage}'/></a></td>";
            } elseif ($homepage_guess && ($homepage = guessHomepage($email, $email2)) != "") {
                echo "<td class='center'><a href='http://{$homepage}'><img src='{$url_images}icons/house.png' title='" . ucfmsg("GUESSED_HOMEPAGE") . " ({$homepage})' alt='" . ucfmsg("GUESSED_HOMEPAGE") . " ({$homepage})'/></a></td>";
            } else {
                echo "<td/>";
            }
            break;
        case "details":
            echo "<td class='center'><a href='vcard{$page_ext_qry}id={$id}'><img src='{$url_images}icons/vcard.png' title='vCard' alt='vCard'/></a></td>";
            if ($map_guess) {
                if ($myrow["address"] != "") {
                    echo "<td class='center'><a href='http://maps.google.com/maps?q=" . urlencode(trim(str_replace("\r\n", ", ", trim($myrow["address"])))) . "&amp;t=h' target='_blank'>\n                                <img src='{$url_images}icons/car.png' title='Google Maps' alt='vCard'/></a></td>";
                } else {
                    echo "<td/>";
                }
            }
            if ($homepage != "") {
                $homepage = strcasecmp(substr($homepage, 0, strlen("http")), "http") == 0 ? $homepage : "http://" . $homepage;
                echo "<td class='center'><a href='{$homepage}'><img src='{$url_images}icons/house.png' title='{$homepage}' alt='{$homepage}'/></a></td>";
            } elseif ($homepage_guess && ($homepage = guessHomepage($email, $email2)) != "") {
                echo "<td class='center'><a href='http://{$homepage}'><img src='{$url_images}icons/house.png' title='" . ucfmsg("GUESSED_HOMEPAGE") . " ({$homepage})' alt='" . ucfmsg("GUESSED_HOMEPAGE") . " ({$homepage})'/></a></td>";
            } else {
                echo "<td/>";
            }
            break;
        default:
            // firstname, lastname, home, mobile, work, fax, phone2
            echo "<td>{${$row}}</td>";
    }
}
コード例 #14
0
ファイル: index.php プロジェクト: AaronLeong/xgcalendar
                        xgcalendar
                    </a>
                </div>
            </div>
        </div>
        <script type="text/javascript" src="static/js/locales/<?php 
echo $lang;
?>
.js"></script>
        <script type="text/javascript" src="static/js/sea.js"></script>
        <script type="text/javascript" src="static/js/seaconfig.js">  </script>
        <script type="text/javascript">
            var loadingmsg = '<?php 
echo ucfmsg("loaddatamsg");
?>
';
            var sucessmsg = '<?php 
echo ucfmsg("successmsg");
?>
';
            var processdatamsg = '<?php 
echo ucfmsg("processdatamsg");
?>
';
            seajs.use('page/index', function(app) {
                app.init();
            });
        </script>
    </body>

</html>
コード例 #15
0
ファイル: index.php プロジェクト: cfhb/MIS
                $(this).addClass("fcurrent");
                var p = $("#gridcontainer").BCalSwtichview("month").BcalGetOp();
                if (p && p.datestrshow) {
                    $("#txtdatetimeshow").text(p.datestrshow);
                }
            });
            
            $("#showreflashbtn").click(function(e){
                $("#gridcontainer").BCalReload();
            });
            
            //点击新增日程
            $("#faddbtn").click(function(e) {
                var url ="";
                OpenModelWindow(url,{ width: 500, height: 400, caption: "<?php 
echo ucfmsg("addcalendar");
?>
"});
            });
            //点击回到今天
            $("#showtodaybtn").click(function(e) {
                var p = $("#gridcontainer").BCalGoToday().BcalGetOp();
                if (p && p.datestrshow) {
                    $("#txtdatetimeshow").text(p.datestrshow);
                }


            });
            //上一个
            $("#sfprevbtn").click(function(e) {
                var p = $("#gridcontainer").BCalPrev().BcalGetOp();
コード例 #16
0
                    echo ucfmsg("PHONE_HOME");
                    ?>
:</label>
    <input type="text" name="phone2"  value="<?php 
                    echoIfSet($addr, 'phone2');
                    ?>
" size="35" /><br />

    <label><?php 
                    echo ucfmsg("NOTES");
                    ?>
:</label>
    <textarea name="notes" rows="5" cols="35"></textarea><br /><br />

    <input type="submit" name="submit" value="<?php 
                    echo ucfmsg('ENTER');
                    ?>
" />
  </form>
  <script type="text/javascript">
    document.theform.email.focus();
  </script>
<?php 
                } else {
                    echo "<br /><div class='msgbox'>Editing is disabled.</div>";
                }
            }
        }
    }
}
include "include/footer.inc.php";
コード例 #17
0
:</label>
				<select name="mailer">
					<?php 
foreach ($mailers as $mailer => $url) {
    echo "<option value='{$mailer}'>" . ucfirst($mailer) . "</option>\n";
}
?>
				</select>
				<input type="submit" name="update" value="<?php 
echo ucfmsg("UPDATE");
?>
" />
		</form>
<br>
		<form method="post" name="sso_form" action="<?php 
echo urldecode($_GET['from']);
?>
">
  	         <input name="user" type="hidden"/>
				<label><?php 
echo ucfmsg("SIGN_IN_WITH");
?>
:</label>
  	         <a href="javascript:sso_form.user.value='Facebook';sso_form.submit();"><img src="icons/facebook.png"></a>
  	         <a href="javascript:sso_form.user.value='Google';sso_form.submit();"><img src="icons/google.png"></a>
  	         <a href="javascript:sso_form.user.value='Yahoo';sso_form.submit();"><img src="icons/yahoo.png"></a>
  	         <a href="javascript:sso_form.user.value='Live';sso_form.submit();"><img src="icons/microsoft.png"></a>
		</form>

<?php 
include "include/footer.inc.php";