本文整理匯總了PHP中Campaign::getCampaignImage方法的典型用法代碼示例。如果您正苦於以下問題:PHP Campaign::getCampaignImage方法的具體用法?PHP Campaign::getCampaignImage怎麽用?PHP Campaign::getCampaignImage使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Campaign
的用法示例。
在下文中一共展示了Campaign::getCampaignImage方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getIndex
public function getIndex()
{
$campaign = new Campaign();
$image = $campaign->getCampaignImage();
$users = new Users();
$member = $users->getRecentUsers();
$this->layout->foot = View::make("landing.foot")->with(array('data' => $image, 'data2' => $member));
$this->layout->title = "Welcome to Sagip.ph";
if (Session::has('userid')) {
$username = Session::get('username');
$logstatus = true;
$userid = Session::get('userid');
$profile = new Profile();
$pic = "#";
$result = $profile->getProfile($userid);
if ($result) {
$pic = $result->profilepic;
}
$data = array('username' => $username, 'logstatus' => $logstatus, 'profilepic' => $pic);
$campaign = new Campaign();
$data2 = $campaign->getCampaignHome();
$this->layout->head = View::make("landing.head")->with($data);
$this->layout->body = View::make("landing.bodycontributordash")->with($data);
} else {
$logstatus = false;
$data = array('logstatus' => $logstatus);
$campaign = new Campaign();
$data2 = $campaign->getCampaignHome();
$this->layout->head = View::make("landing.head")->with($data);
$this->layout->body = View::make("landing.bodycontributordash")->with($data);
}
}
示例2: getIndex
public function getIndex()
{
// Session::put('userid','001');
// Session::put('username','jehdeguzman');
$this->layout->title = "Welcome to Sagip.ph";
// $campaign = new Campaign;
// $result = $campaign->getImage();
$campaign = new Campaign();
$image = $campaign->getCampaignImage();
$users = new Users();
$member = $users->getRecentUsers();
$this->layout->foot = View::make("landing.foot")->with(array('data' => $image, 'data2' => $member));
if (Session::has('userid')) {
$username = Session::get('username');
$logstatus = true;
$userid = Session::get('userid');
$profile = new Profile();
$pic = "#";
$result = $profile->getProfile($userid);
if ($result) {
$pic = $result->profilepic;
}
$data = array('username' => $username, 'logstatus' => $logstatus, 'profilepic' => $pic);
$campaign = new Campaign();
$data2 = $campaign->getCampaignHome();
$donation = new Donations();
$data3 = $donation->getTopContributorsHome();
$this->layout->head = View::make("landing.head")->with($data);
$this->layout->body = View::make("landing.bodyhome")->with(array('data2' => $data2, 'data3' => $data3, 'logstatus' => $logstatus));
//return View::make('home')->with($data);
} else {
$logstatus = false;
$data = array('logstatus' => $logstatus);
$campaign = new Campaign();
$data2 = $campaign->getCampaignHome();
$donation = new Donations();
$data3 = $donation->getTopContributorsHome();
$this->layout->head = View::make("landing.head")->with($data);
$this->layout->body = View::make("landing.bodyhome")->with(array('data2' => $data2, 'data3' => $data3, 'logstatus' => $logstatus));
}
}
示例3: getIndex
public function getIndex($usernameurl)
{
//$username = Request::segment(1);
$users = new Users();
$result = $users->checkUser($usernameurl);
$this->layout->title = "Welcome to Sagip.ph";
$campaign = new Campaign();
$image = $campaign->getCampaignImage();
$users = new Users();
$member = $users->getRecentUsers();
$this->layout->foot = View::make("landing.foot")->with(array('data' => $image, 'data2' => $member));
if ($result) {
$useridurl = $result->id;
$activity = new Activity();
$recent = $activity->getRecent($useridurl);
if (!$recent) {
$recent = false;
}
if (Session::has('userid')) {
$username = Session::get('username');
$logstatus = true;
$userid = Session::get('userid');
$profile = new Profile();
$firstname = "";
$lastname = "";
$age = "";
$address = "";
$work = "";
$website = "";
$contact = "";
$pic = "images/users/default.png";
$result = $profile->getProfile($userid);
if ($result) {
$firstname = $result->firstname;
$lastname = $result->lastname;
$age = $result->age;
if ($age == 0) {
$age = "";
}
$address = $result->address;
$work = $result->work;
$website = $result->website;
$contact = $result->contact;
$pic = $result->profilepic;
}
$data = array('username' => $username, 'logstatus' => $logstatus, 'firstname' => $firstname, 'lastname' => $lastname, 'age' => $age, 'address' => $address, 'work' => $work, 'website' => $website, 'contact' => $contact, 'profilepic' => $pic, 'recent' => $recent);
$this->layout->head = View::make("landing.head")->with($data);
$this->layout->body = View::make("landing.bodyprofile")->with($data);
if (Session::get('username') != $usernameurl) {
$username = $usernameurl;
$logstatus = false;
$profile = new Profile();
$firstname = "";
$lastname = "";
$age = "";
$address = "";
$work = "";
$website = "";
$contact = "";
$pic = "images/users/default.png";
$result = $profile->getProfile($useridurl);
if ($result) {
$firstname = $result->firstname;
$lastname = $result->lastname;
$age = $result->age;
if ($age == 0) {
$age = "";
}
$address = $result->address;
$work = $result->work;
$website = $result->website;
$contact = $result->contact;
$pic = $result->profilepic;
}
$data = array('username' => $username, 'logstatus' => $logstatus, 'firstname' => $firstname, 'lastname' => $lastname, 'age' => $age, 'address' => $address, 'work' => $work, 'website' => $website, 'contact' => $contact, 'profilepic' => $pic, 'recent' => $recent);
$this->layout->body = View::make("landing.bodyprofile")->with($data);
} else {
}
//return View::make('home')->with($data);
} else {
$logstatus = false;
$profile = new Profile();
$result = $profile->getProfile($useridurl);
if ($result) {
$firstname = $result->firstname;
$lastname = $result->lastname;
$age = $result->age;
if ($age == 0) {
$age = "";
}
$address = $result->address;
$work = $result->work;
$website = $result->website;
$contact = $result->contact;
$pic = $result->profilepic;
}
$data = array('username' => $usernameurl, 'logstatus' => $logstatus, 'firstname' => $firstname, 'lastname' => $lastname, 'age' => $age, 'address' => $address, 'work' => $work, 'website' => $website, 'contact' => $contact, 'profilepic' => $pic, 'recent' => $recent);
$this->layout->head = View::make("landing.head")->with($data);
$this->layout->body = View::make("landing.bodyprofile")->with($data);
}
//.........這裏部分代碼省略.........