} require_once e_PLUGIN . 'pm/pm_class.php'; require_once e_PLUGIN . 'pm/pm_func.php'; include_lan(e_PLUGIN . 'pm/languages/' . e_LANGUAGE . '.php'); e107::getScParser(); require_once e_PLUGIN . 'pm/pm_shortcodes.php'; define('ATTACHMENT_ICON', "<img src='" . e_PLUGIN . "pm/images/attach.png' alt='' />"); $qs = explode('.', e_QUERY); $action = varset($qs[0], 'inbox'); if (!$action) { $action = 'inbox'; } if ($action == 'textarea' || $action == 'input') { if ($qs[1] == 'pm_to') { require_once e_HANDLER . 'user_select_class.php'; $us = new user_select(); $us->popup(); exit; } } $pm_proc_id = intval(varset($qs[1], 0)); //$pm_prefs = $sysprefs->getArray('pm_prefs'); $pm_prefs = e107::getPlugPref('pm'); $pm_prefs['perpage'] = intval($pm_prefs['perpage']); if ($pm_prefs['perpage'] == 0) { $pm_prefs['perpage'] = 10; } if (!isset($pm_prefs['pm_class']) || !check_class($pm_prefs['pm_class'])) { require_once HEADERF; $ns->tablerender(LAN_PM, LAN_PM_12); require_once FOOTERF;
public function sc_pm_form_touser() { if (vartrue($this->var['from_name'])) { return "<input type='hidden' name='pm_to' value='{$this->var['from_name']}' />{$this->var['from_name']}"; } require_once e_HANDLER . 'user_select_class.php'; $us = new user_select(); $type = $this->pmPrefs['dropdown'] == TRUE ? 'list' : 'popup'; if (check_class($this->pmPrefs['multi_class'])) { $ret = $us->select_form($type, 'textarea.pm_to', '', $this->pmPrefs['pm_class']); } else { $frm = e107::getForm(); //TODO Use $frm->userpicker(); return $frm->text('pm_to', '', 20, 'typeahead=users'); // $ret = $us->select_form($type, 'pm_to', '', $this->pmPrefs['pm_class']); } return $ret; }
public function sc_pm_form_touser() { if (vartrue($this->pmInfo['from_name'])) { return "<input type='hidden' name='pm_to' value='{$this->pmInfo['from_name']}' />{$this->pmInfo['from_name']}"; } require_once e_HANDLER . 'user_select_class.php'; $us = new user_select(); $type = $this->pmPrefs['dropdown'] == TRUE ? 'list' : 'popup'; if (check_class($this->pmPrefs['multi_class'])) { $ret = $us->select_form($type, 'textarea.pm_to', '', $this->pmPrefs['pm_class']); } else { $ret = $us->select_form($type, 'pm_to', '', $this->pmPrefs['pm_class']); } return $ret; }
$SEARCH_VARS->SEARCH_ADV_B .= "<option value='" . $list_item['id'] . "' " . ($_GET[$adv_key] == $list_item['id'] ? "selected='selected'" : "") . ">" . $list_item['title'] . "</option>"; } $SEARCH_VARS->SEARCH_ADV_B .= "</select>"; } else { if ($adv_value['type'] == 'date') { $SEARCH_VARS->SEARCH_ADV_A = $adv_value['text']; $SEARCH_VARS->SEARCH_ADV_B = "<select id='on' name='on' class='tbox'>\n\t\t\t\t\t<option value='new' " . ($_GET['on'] == 'new' ? "selected='selected'" : "") . ">" . LAN_SEARCH_34 . "</option>\n\t\t\t\t\t<option value='old' " . ($_GET['on'] == 'old' ? "selected='selected'" : "") . ">" . LAN_SEARCH_35 . "</option>\n\t\t\t\t\t</select> <select id='time' name='time' class='tbox'>"; $time = array(LAN_SEARCH_36 => 'any', LAN_SEARCH_37 => 86400, LAN_SEARCH_38 => 172800, LAN_SEARCH_39 => 259200, LAN_SEARCH_40 => 604800, LAN_SEARCH_41 => 1209600, LAN_SEARCH_42 => 1814400, LAN_SEARCH_43 => 2628000, LAN_SEARCH_44 => 5256000, LAN_SEARCH_45 => 7884000, LAN_SEARCH_46 => 15768000, LAN_SEARCH_47 => 31536000, LAN_SEARCH_48 => 63072000, LAN_SEARCH_49 => 94608000); foreach ($time as $time_title => $time_secs) { $SEARCH_VARS->SEARCH_ADV_B .= "<option value='" . $time_secs . "' " . ($_GET['time'] == $time_secs ? "selected='selected'" : "") . ">" . $time_title . "</option>"; } $SEARCH_VARS->SEARCH_ADV_B .= "</select>"; } else { if ($adv_value['type'] == 'author') { require_once e_HANDLER . 'user_select_class.php'; $us = new user_select(); $SEARCH_VARS->SEARCH_ADV_A = $adv_value['text']; $SEARCH_VARS->SEARCH_ADV_B = $us->select_form('popup', $adv_key, $_GET[$adv_key]); } else { if ($adv_value['type'] == 'dual') { $SEARCH_VARS->SEARCH_ADV_A = $adv_value['adv_a']; $SEARCH_VARS->SEARCH_ADV_B = $adv_value['adv_b']; } } } } //$text .= preg_replace("/\{(.*?)\}/e", '$\1', $SEARCH_ADV); $text .= $tp->simpleParse($SEARCH_ADV, $SEARCH_VARS); } } } else {