Beispiel #1
0
</div>';
/*
echo '
<p>
	<label>'.$locale['awec_login_start'].':</label><br />
	'.awec_make_datetime($event['ev_login_start'], 'login_start').'
</p>

<p>
	<label>'.$locale['awec_login_end'].':</label><br />
	'.awec_make_datetime($event['ev_login_end'], 'login_end').'
</p>';
*/
awec_close_tab();
if (!empty($cats)) {
    awec_open_tab('cats', $locale['awec_cats']);
    echo $cats;
    awec_close_tab();
}
awec_tabs_close();
echo '
<p>
<span class="small2">' . $locale['awec_private_saving'] . '</span>
</p>

<p>
<input type="hidden" name="save" value="just_do_it" />
<input type="submit" name="save_draft" class="button" value="' . $locale['awec_save_draft'] . '" />';
if (iAWEC_RELEASE) {
    echo '
<input type="submit" name="save_release" class="button" value="' . $locale['awec_save_release'] . '" />';
Beispiel #2
0
<select class="textbox" name="users[]" size="10" multiple="multiple">' . $sel_users . '</select>

<p>
<label><input type="checkbox" name="send_pm" id="sp0"' . ($awec_settings['invite_pm'] ? ' checked="checked"' : '') . ' /> ' . $locale['EC324'] . '</label>
</p>

<input type="submit" class="button" name="invite" value="' . $locale['EC322'] . '">
</div>
</form>';
//closetable();
awec_close_tab();
/****************************************************************************
 * GUI: mail
 */
echo '<a name="mail"></a>';
awec_open_tab('email', $locale['EC313']);
if (isset($_POST['mail'])) {
    $errors = 0;
    $who = array();
    if (isset($_POST['who'])) {
        foreach ($_POST['who'] as $val) {
            $who[] = "login_status='" . intval($val) . "'";
        }
    }
    if (count($who) == 0) {
        $errors++;
        $err_str = $locale['EC115'][4];
    }
    if (!$errors) {
        $res = dbquery("SELECT user_name, user_email\n\t\t\tFROM " . AWEC_DB_LOGINS . "\n\t\t\tLEFT JOIN " . DB_USERS . " USING(user_id)\n\t\t\tWHERE ev_id='" . $event['ev_id'] . "'\n\t\t\t\tAND (" . implode(' OR ', $who) . ")");
        if (!dbrows($res)) {