value,parameter => value) ) // Internal variables used generated by the class var $ParamString=""; var $StartItem; var $message; //intenal message function Create_Pagelinks() { $check=$this->check_variables(); if ($check==0) { $PageString=""; //Determin how many pages there are $TotalPages=ceil($this->TotalItems/$this->ItemsPerPage); if ($this->ShowTotalPages) $PageString .="(" . $this->ShowTotalPagesString . " " .$TotalPages .") "; //Determin on wich page we are $CurrentPage=(floor($this->StartItem/$this->ItemsPerPage))+1; if ($CurrentPage>$TotalPages) $CurrentPage=$TotalPages; //if page is not 1 create Prev and first if set to true if ($CurrentPage>1) { if ($this->FirstLast==true) { $PageString .='First '; } if ($this->PrevNext==true) { $PageString .='Prev '; } } //Make Trailing Pages if ($this->UsePoints) { if ($CurrentPage-$this->TrailingPages>1) $PageString .=$this->Points . " "; } $NumberedPages=($this->TrailingPages*2)+1; for ($i=0;$i<$NumberedPages;++$i) { $Pagenumber=$CurrentPage+$i-$this->TrailingPages; if ($Pagenumber<$CurrentPage && $Pagenumber > 0) $PageString .='' . $Pagenumber . ' '; if ($Pagenumber==$CurrentPage) $PageString .="" . $CurrentPage . " "; if ($Pagenumber>$CurrentPage && $Pagenumber <= $TotalPages) $PageString .='' . $Pagenumber . ' '; } if ($this->UsePoints) { if ($CurrentPage+$this->TrailingPages<$TotalPages) $PageString .=$this->Points ." "; } //if page is not last create Next and Last if set to true if ($CurrentPage<$TotalPages) { if ($this->PrevNext==true) { $PageString .='Next '; } if ($this->FirstLast==true) { $PageString .='Last '; } } } else $PageString=$this->message; return $PageString; } function check_variables() { $this->message="";$ok=0; if ((int)($this->TotalItems)<0) $this->TotalItems=0; $this->TotalItems=floor($this->TotalItems); if ($this->TotalItems==0) { //$this->message .= '!!Class PageCreator Error: TotalItems not defined by script (eg: $pg->TotalItems=100)'; $ok=1; } if ((int)($this->ItemsPerPage)<1) $this->ItemsPerPage=1; $this->ItemsPerPage=floor($this->ItemsPerPage); $this->StartItem=$_REQUEST[$this->ScriptVariable]; if (!$this->StartItem) $this->StartItem=0; if ((int)($this->StartItem)<0) $this->StartItem=0; if ((int)($this->StartItem)>$this->TotalItems) $this->StartItem=$this->$TotalItems-$this->ItemsPerPage; $this->StartItem=floor($this->StartItem); if ((int)($this->TrailingPages)<0) $this->TrailingPages=0; $this->TrailingPages=floor($this->TrailingPages); if (!$this->PrevNext && $this->TrailingPages<1) $this->TrailingPages=1; if (!$this->ScriptFile) $this->ScriptFile=$_SERVER["PHP_SELF"]; $this->ParamString=""; foreach ($this->Parameters as $key => $value) { $this->ParamString .="$key=$value&"; } return $ok; } } ?> Cornetto - Thể hiện Tình Yêu, nhận quà sành điệu - Chương trình nhắn tin trúng thưởng được tổ chức bởi Unilever phối hợp cùng VIETGUYS.

Cách thức tham dự

  1. Mua kem Cornetto
  2. Tìm mã số dưới nắp kem
  3. Nhắn
    COR <Mã Số> về 8027
  4. Giữ lại nắp kem và tin nhắn từ 8027.
để có cơ hội trúng hàng ngàn giải thưởng sành điệu!

Trinh duyet cua ban chua ho tro xem Flash. Vui long cai dat chuc nang xem Flash de xem duoc Video tu Cornetto.

(08) - 38 236 651

Đừng ngần ngại gọi ngay số tổng đài hỗ trợ khi có bất kỳ thắc mắc nào về chương trình bạn nhé!

Xem thể lệ chương trình.

"Nắm lấy cơ hội"

Bạn đã nghe bài hát "Nắm lấy cơ hội" vừa mới ra lò của Cornetto chưa nhỉ?

Cùng nghe bạn nhé!

Thể hiện tình yêu

"Một cây cho bạn, một cây cho mình!" hãy cùng thể hiện tình yêu với các loại kem Cornetto nào!

Chia sẻ tại đây.

WOW! Trúng rồi!

Hãy click vào đây để xem ai là người may mắn nào?

Danh sách người may mắn!

www.cornettolove.com
© 2010. Unilever giữ bản quyền.