Lines Matching refs:this

39         if ($INFO['ismanager'] === true) $this->editor = true;
40 if (isset($INFO['userinfo'])) $this->loggedin = true;
46 …public function connectTo($mode) {$this->Lexer->addEntryPattern('\[ADDRESSBOOK.*?', $mode, 'plugin…
48 public function postConnect() { $this->Lexer->addExitPattern('\]','plugin_addressbook'); }
79 if ($_REQUEST['Submit'] == $this->getLang('exec cancel')){
93 if ($_REQUEST['Submit']==$this->getLang('exec save')) $action = "savedata";
96 if ($action=='savedata' && $this->saveOnce == 0 && $this->editor){
97 $this->saveOnce++;
99 $cinfo = $this->loadFormData(); # Loads form data concerning the contact
100 $res = $this->saveData($cinfo);
120 $renderer->doc .= $this->showcontact(intval(substr($data,8)),$ID);
128 if (isset($_REQUEST['showcontact']) && $this->showCount==0) {
129 $this->showCount++;
130 $out = $this->showcontact($_REQUEST['showcontact'],$ID);
137 $list = $this->getList(false,'department,surname,firstname,cfunction');
138 $renderer->doc .= $this->buildIndex($list,'department',$ID);
139 } else $renderer->doc .= $this->buildIndex(false,false,$ID);
147 $this->instance++;
148 if ($this->instance > 1) return;
158 $params = $this->getValue($data,'');
164 $pList = $this->getList(Array('department' => $params['select']));
168 $renderer->doc .= $this->buildPrintList($pList,$sep);
178 … if ($action == 'addcontact' && $this->editor) { # Add a new contact. Can be overwritten by edit
183 …if (isset($_REQUEST['editcontact']) && $this->editor) { # Override new contact if the action is t…
185 $cinfo = $this->getContactData($contact_id);
189 if ($action == 'edit' && $this->editor) {
190 $out = $this->buildForm($contact_id,$cinfo);
197 if ($action == 'search' || $_REQUEST['Submit'] == $this->getLang('exec search')) {
198 $out = $this->searchDialog();
203 if ($_REQUEST['Submit'] == $this->getLang('exec search')) {
204 $list = $this->searchDB($_REQUEST['searchtext']);
207 foreach ($list as $l) $renderer->doc .= $this->showcontact($l['id'],$ID);
208 } else $renderer->doc .= $this->buildIndex($list,false,$ID);
218 if (isset($_REQUEST['showcontact']) && $this->showCount==0) {
219 $this->showCount++;
220 $out = $this->showcontact($_REQUEST['showcontact'],$ID);
226 if (isset($_REQUEST['erasecontact']) && $this->editor){
227 $this->deleteContact($_REQUEST['erasecontact']);
244 …$out .= '<span>'.$this->getLang('addressbook').'</span> <input type="text" name="searchtext" place…
245 $out .= '<input type="submit" name="Submit" value="'.$this->getLang('exec search').'" />';
258 …if ($contact_id == 'new') {$out .= '<h2>'.$this->getLang('header add').'</h2>';} else {$out .= '<h…
263 …$out .= '<input type="text" name="firstname" placeholder="'.$this->getLang('form firstname').'" va…
264 …$out .= '<input type="text" name="surname" placeholder="'.$this->getLang('form surname').'" value=…
265 …$out .= '<input type="text" name="cfunction" placeholder="'.$this->getLang('form function').'" val…
266 …$out .= '<input type="text" name="department" placeholder="'.$this->getLang('form department').'" …
267 …$out .= '<input type="text" name="tel1" placeholder="'.$this->getLang('form tel1').'" value="'.$ci…
268 …$out .= '<input type="text" name="tel2" placeholder="'.$this->getLang('form tel2').'" value="'.$ci…
269 …$out .= '<input type="text" name="fax" placeholder="'.$this->getLang('form fax').'" value="'.$cinf…
270 …$out .= '<input type="text" name="email" placeholder="'.$this->getLang('form email').'" value="'.$…
271 …$out .= '<br>'.$this->getLang('form description').':<br><textarea name="description">'.$cinfo['des…
278 $out .= '<label for="removephoto">'.$this->getLang('form remove').'</label><br><br>';
279 $out .= $this->getLang('form upload info2').'.<br>';
284 …$out .= $this->getLang('form upload').': <input name="photo" type="file" /> '.$this->getLang('form…
288 $out .= '<br><input type="submit" name="Submit" value="'.$this->getLang('exec save').'" />';
289 $out .= '<input type="submit" name="Submit" value="'.$this->getLang('exec cancel').'" />';
299 $r = $this->getContactData($cid);
318 …if ($r['department'].$r['cfunction'] != '') $out .= $this->names(array($r['cfunction'],$r['departm…
324 …if ($r['tel1'].$r['tel2'] <> '') $out .= '<br>Tel.: '.$this->names(array($r['tel1'],$r['tel2']),' …
340 if ($this->loggedin) {
345 if ($this->editor && $target != false) {
347 … $out .= '<a href="'.wl($target,'editcontact='.$r['id']).'">'.$this->getLang('exec edit').'</a>';
348 …rget,'erasecontact='.$r['id']).'" onclick="return confirm(\'Sure?\');">'.$this->getLang('exec dele…
411 $keys = $this->getKeys();#Array('firstname','surname','cfunction','description');
424 $pic = $this->scaleJPG($_FILES['photo']['tmp_name']);
641 …if ($r['surname'] == '' && $r['department'] == '') $r['department'] = $this->getLang('departments'…
642 … if ($r['surname'] != '' && $r['department'] == '') $r['department'] = $this->getLang('general');
740 $list =$this->getList();
747 $out .= $this->getLang('elements').': '.count($list);
768 if (!$names) $out .= $this->names(array($r['cfunction'],$r['department']));
772 …if ($names && $r['cfunction'].$r['department'] <>'') $out .= ' ('.$this->names(array($r['cfunction…
774 … if ($r['tel1'].$r['tel2'] <> '') $out .= ' Tel: '.$this->names(array($r['tel1'],$r['tel2']));
810 …$list =$this->getList(false,($separator == false? '': "$separator,").'surname,firstname,cfunction'…
894 …$out .= '<td style="text-align:left">'.$this->names(array($list[$d]['cfunction'],$list[$d]['surnam…