| ";
$row->details .=$this->lang('fontfile')." | ";
$row->details .= $this->CreateInputDropdown($id, 'element_'.$elementid.'_fontfile', $fonts, -1, $element[1]).' | | ';
$row->details .= $this->lang('size')." | ";
$row->details .= $this->CreateInputText($id, 'element_'.$elementid.'_size', $element[2], 3, 3).'pixels |
| ';
$row->details .= $this->lang('color')." | ";
$row->details .= $this->CreateInputText($id, 'element_'.$elementid.'_color', substr($element[3],0,7), 9, 9,'onkeyup="changeColor(this.id)"');
$row->details .= $this->CreateInputText($id, 'element_'.$elementid.'_color_sample', '', 1, 1, 'readonly="readonly" onclick="openColorPicker(this.id)" style="cursor:pointer;background-color:'.substr($element[3],0,7).'" ')." | | ";
$row->details .= $this->lang('transparency')." | ";
$transparency = round(('0x'.substr($element[3],7))*100/255);
if ($transparency == "") $transparency = "0";
$row->details .= $this->CreateInputText($id, 'element_'.$elementid.'_transparency', $transparency, 3, 3).'% |
| ';
$row->details .= $this->lang('deltax')." | ";
$row->details .= $this->CreateInputText($id, 'element_'.$elementid.'_deltax', $element[4], 4, 4).'pixels | | ';
$row->details .= $this->lang('deltay')." | ";
$row->details .= $this->CreateInputText($id, 'element_'.$elementid.'_deltay', $element[5], 4, 4).'pixels; |
| ';
$row->details .= $this->lang('angle')." | ";
$row->details .= $this->CreateInputText($id, 'element_'.$elementid.'_angle', $element[6], 3, 3).'° |
';
$row->details .= "
";
break;
case 'mirror' :
$row->details .= $this->CreateInputTextWithLabel($id, 'element_'.$elementid.'_ratio', $element[1], 3, 3, '', $this->lang('ratio')).'% ';
$row->details .= $this->CreateInputTextWithLabel($id, 'element_'.$elementid.'_upopacity', $element[2], 3, 3, '', $this->lang('upopacity')).'% ';
$row->details .= $this->CreateInputTextWithLabel($id, 'element_'.$elementid.'_downopacity', $element[3], 3, 3, '', $this->lang('downopacity')).'%';
break;
case 'effect' :
$effects = array($this->lang('blur') =>'blur' , $this->lang('emboss')=>'emboss', $this->lang('sharpen') =>'sharpen', $this->lang('edge') =>'edge');
$row->details .= $this->CreateInputDropdown($id, 'element_'.$elementid.'_filtertype', $effects, -1, $element[1]);
break;
case 'transformation' :
$transformations = array($this->lang('fliphorizontal') =>'fliphorizontal' , $this->lang('flipvertical')=>'flipvertical', $this->lang('flipboth') =>'flipboth', $this->lang('rotate90') =>'rotate90', $this->lang('rotate270') =>'rotate270');
$row->details .= $this->CreateInputDropdown($id, 'element_'.$elementid.'_transformationtype', $transformations, -1, $element[1]);
break;
}
array_push($items, $row);
$rowclass = ($rowclass=="row1" ? "row2" : "row1");
}
$this->smarty->assign_by_ref('items', $items);
$this->smarty->assign('itemcount', count($items));
/*if (count($fontfiles)>0)
$this->smarty->assign('addlink', $this->CreateLink($id, 'addstyle', $returnid, $gCms->variables['admintheme']->DisplayImage('icons/system/newobject.gif', $this->Lang('addstyle'),'','','systemicon'), array(), '', false, false, '') .' '. $this->CreateLink($id, 'addstyle', $returnid, $this->Lang('addstyle'), array(), '', false, false, 'class="pageoptions"'));*/
$this->smarty->assign('numbertext', $this->Lang('number'));
$this->smarty->assign('typetext', $this->Lang('type'));
$this->smarty->assign('detailstext', $this->Lang('details'));
echo $this->CreateFieldsetStart($id,'fieldset');
echo $this->CreateLink($id, 'addelement', $returnid, $gCms->variables['admintheme']->DisplayImage('icons/system/newobject.gif', $this->Lang('addtext'),'','','systemicon'), array('styleid' => $TTTstyle->id, 'elementtype' => 'text'), '', false, false, '') .' '. $this->CreateLink($id, 'addelement', $returnid, $this->Lang('addtext'), array('styleid' => $TTTstyle->id, 'elementtype' => 'text'), '', false, false, 'class="pageoptions"');
echo ' '.$this->CreateLink($id, 'addelement', $returnid, $gCms->variables['admintheme']->DisplayImage('icons/system/newobject.gif', $this->Lang('addfilter'),'','','systemicon'), array('styleid' => $TTTstyle->id, 'elementtype' => 'effect'), '', false, false, '') .' '. $this->CreateLink($id, 'addelement', $returnid, $this->Lang('addfilter'), array('styleid' => $TTTstyle->id, 'elementtype' => 'effect'), '', false, false, 'class="pageoptions"');
echo ' '.$this->CreateLink($id, 'addelement', $returnid, $gCms->variables['admintheme']->DisplayImage('icons/system/newobject.gif', $this->Lang('addmirror'),'','','systemicon'), array('styleid' => $TTTstyle->id, 'elementtype' => 'mirror'), '', false, false, '') .' '. $this->CreateLink($id, 'addelement', $returnid, $this->Lang('addmirror'), array('styleid' => $TTTstyle->id, 'elementtype' => 'mirror'), '', false, false, 'class="pageoptions"');
echo ' '.$this->CreateLink($id, 'addelement', $returnid, $gCms->variables['admintheme']->DisplayImage('icons/system/newobject.gif', $this->Lang('addtransformation'),'','','systemicon'), array('styleid' => $TTTstyle->id, 'elementtype' => 'transformation'), '', false, false, '') .' '. $this->CreateLink($id, 'addelement', $returnid, $this->Lang('addtransformation'), array('styleid' => $TTTstyle->id, 'elementtype' => 'transformation'), '', false, false, 'class="pageoptions"');
echo $this->CreateFieldsetEnd();
echo $this->CreateFormStart($id, 'changeelements', $returnid);
echo $this->CreateInputHidden($id, 'count_elements', count($items));
echo $this->CreateInputHidden($id, 'styleid', $styleid);
echo $this->ProcessTemplate('elementslist.tpl');
echo $this->CreateInputSubmit($id, 'submit', $this->lang('save'));
echo $this->CreateInputSubmit($id, 'back', $this->lang('back'));
echo $this->CreateFormEnd();
echo $this->EndTab();
echo $this->EndTabContent();
?>