Exemple #1
0
 /**
  * attributePullDown
  * @return attribute
  */
 function attributePullDown()
 {
     $tblAttribute = new Kutu_Core_Orm_Table_Attribute();
     $row = $tblAttribute->fetchAll(null, 'guid ASC');
     $attribute = "<select name=\"attribute\" id=\"attribute\">\n";
     $attribute .= "<option value='' selected>----------Choose Attribute----------</option>";
     foreach ($row as $rowset) {
         $attribute .= "<option value='{$rowset->guid}'>{$rowset->guid}</option>";
     }
     $attribute .= "</select>\n\n";
     return $attribute;
 }