/**
		  * draw the object.
		  */
		function draw() {
			/** Create the value array **/
			global $db;

			$instances = null;

			$this->createCLT($instances);

			// set the values
			$this->v_wuiobject->value = $instances;
			// draw the object
			DBO::draw();
			return 2;
		}
 /**
  * draw the object.
  */
 function draw()
 {
     /** Create the value array **/
     global $db;
     $folders = null;
     $folders[0][0] = ">";
     $folders[0][1] = 0;
     $this->createFolders($folders, ">", 0);
     // set the values
     $this->v_wuiobject->value = $folders;
     // draw the object
     DBO::draw();
     return 2;
 }
 /**
  * draw the object.
  */
 function draw()
 {
     /** Create the value array **/
     global $db;
     $folders = null;
     $folders[0][0] = ">";
     $folders[0][1] = 0;
     if ($this->livepages) {
         $this->createFolders($folders, ">", translateState(0, 10, false));
     } else {
         $this->createFolders($folders, ">", 0);
     }
     // set the values
     $this->v_wuiobject->value = $folders;
     // draw the object
     DBO::draw();
     return 2;
 }
		/**
		  * draw the object.
		  */
		function draw() {
			/** Create the value array **/
			global $db, $lang;

			if ($this->iscompound == 1) {
			  $folders[0][0] = $lang->get("not_specified", "Any type");
			  $folders[0][1] = -1;
			} else {
			  $folders = null;	
			}
			
			$this->createCLT($folders, "/", 0);
			
			// set the values
			$this->v_wuiobject->value = $folders;
			// draw the object
			DBO::draw();
			return 2;
		}
		function draw() {
			global $lang, $page_action;
			if ($this->value == "") $this->value = 999;
			$values = createNameValueArrayEx("sitemap", "NAME", "POSITION", "PARENT_ID = ".$this->parentId, " AND DELETED=0 ORDER BY POSITION");					    
			for ($i=0; $i < count($values); $i++) {
				$values[$i][0] = $lang->get("after", "After:")." ".$values[$i][0];
				if ($this->value > $values[$i][1] || $page_action == "INSERT") {
					$values[$i][1]++;
				} else 	if ($this->value == $values[$i][1] && $page_action != "INSERT") {
					$values[$i][0] = $lang->get("remain_pos", "Do not change position"); 
				}
			}
			
			
			if (is_array($values)) {
				array_unshift($values, array($lang->get("begin", "At the beginnging"), "1"));
			} else {
			  	$values = array(array($lang->get("begin", "At the beginnging"), "1"));				
			}			
						
			if ($this->value == "999") {
				$this->v_wuiobject->selectedValue = $values[count($values)-1][1];			
			}
			
			$this->v_wuiobject->value = $values;
			return DBO::draw();
		}