예제 #1
0
 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;
 }
예제 #2
0
 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;
 }
예제 #3
0
파일: search.php 프로젝트: notzen/e107
                 $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>&nbsp;<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 {
     $_GET['adv'] = 0;
 }