Difference between revisions of "User:Ela Talaj"

From Second Life Wiki
Jump to: navigation, search
(acting upon talk page thread)
 
 
Line 1: Line 1:
[[Category:SL Certification Participant|{{PAGENAME}}]]
+
[[File:integer page;
 +
 +
CalculatePages()
 +
{
 +
  if(items_num > 11)
 +
    {
 +
    pages_number = items_num / 9;
 +
    last_page_items = items_num % 9;
 +
    if(last_page_items) ++pages_number;
 +
    else last_page_items = 9;
 +
    }
 +
  else
 +
    {
 +
    pages_number = 1;
 +
    last_page_items = items_num;
 +
    }       
 +
  page = 1;                                                // current page = first one
 +
}]]

Latest revision as of 14:04, 13 December 2010

[[File:integer page;

CalculatePages() {

  if(items_num > 11)
    {
    pages_number = items_num / 9;
    last_page_items = items_num % 9;
    if(last_page_items) ++pages_number;
    else last_page_items = 9;
    }
  else
    {
    pages_number = 1;
    last_page_items = items_num;
    }        
  page = 1;                                                 // current page = first one

}]]