예제 #1
0
 function __construct()
 {
     $this->pageName = "missing";
     $this->pageTitle = "Missing Info";
     $this->pageParams = array('head_extra_fn' => array(&$this, 'extra_head'));
     parent::__construct();
 }
예제 #2
0
 function __construct()
 {
     $this->pageName = "recommend";
     $this->pagePath = "/profile_recommend";
     $this->pageTitle = "Journalists you recommend";
     $this->pageParams = array('head_extra_fn' => array(&$this, 'extra_head'));
     parent::__construct();
 }
예제 #3
0
 function __construct()
 {
     $this->pageName = "awards";
     $this->pagePath = "/profile_awards";
     $this->pageTitle = "Awards";
     $this->pageParams = array('head_extra_fn' => array(&$this, 'extra_head'));
     parent::__construct();
 }
예제 #4
0
 function __construct()
 {
     $this->pageName = "employment";
     $this->pageTitle = "Employment";
     $this->pagePath = "/profile_employment";
     $this->pageParams = array('head_extra_fn' => array(&$this, 'extra_head'));
     parent::__construct();
 }
예제 #5
0
 function __construct()
 {
     $this->pageName = "import";
     $this->pageTitle = "Import Profile";
     $this->pagePath = "/profile_import";
     $this->pageParams = array('head_extra_fn' => array(&$this, 'extra_head'));
     parent::__construct();
     $this->imported = null;
 }
예제 #6
0
    function __construct()
    {
        $this->pageName = "photo";
        $this->pageTitle = "Photo";
        $this->pagePath = "/profile_photo";
        $this->pageParams = array('head_extra_fn' => array(&$this, 'extra_head'));
        $this->uploadError = NULL;
        parent::__construct();
        // fetch the current photo, if any
        $sql = <<<EOT
SELECT p.id, p.image_id, p.is_thumbnail, i.width, i.height, i.filename, i.created
    FROM (journo_photo p INNER JOIN image i ON i.id=p.image_id )
    WHERE p.journo_id=?
    LIMIT 1
EOT;
        $this->photo = db_getRow($sql, $this->journo['id']);
        if (!is_null($this->photo)) {
            $this->photo['is_thumbnail'] = $this->photo['is_thumbnail'] == 't' ? TRUE : FALSE;
        }
    }
예제 #7
0
 function __construct()
 {
     $this->pageName = "weblinks";
     $this->pagePath = "/profile_weblinks";
     $this->pageTitle = "Weblinks";
     $this->pageParams = array('head_extra_fn' => array(&$this, 'extra_head'));
     parent::__construct();
     /* if submitting, hold fields as class-wide data, so we can add error messages etc... */
     $this->submitted = null;
     $this->badSubmit = false;
     if (get_http_var('action') == 'submit') {
         $this->submitted = $this->weblinksFromHTTPVars();
         /* check links, agument with error message if there is one */
         foreach ($this->submitted as &$w) {
             $err = $this->checkWebLink($w);
             if (!is_null($err)) {
                 $this->badSubmit = true;
                 $w['err'] = $err;
             }
         }
     }
 }