Example #1
0
 function tagImageLoader($Item)
 {
     if ($this->attr("load") !== 1) {
         $form = $_GET["form"];
         $item = $Item["id"];
         if ($this->attr("data-form") > "") {
             $form = $this->attr("data-form");
         }
         if ($this->attr("data-item") > "") {
             $item = $this->attr("data-item");
         }
         $path = formPathGet($form, $item);
         $img = formGetForm("form", "comImages");
         $ext = $this->attr("data-ext");
         $max = $this->attr("data-max");
         $name = $this->attr("data-name");
         if ($this->attr("data-prop") == "false") {
             $img->find(".form-group.prop")->remove();
         }
         $img->contentSetValues($Item);
         $this->attr("path", $path["uplitem"]);
         $this->html($img->outerHtml());
         $this->attr("load", 1);
         $this->addClass("loaded");
         if ($name > "") {
             $this->find("[data-role=imagestore]")->attr("name", $name);
         }
         if ($ext > "") {
             $ext = implode(" ", attrToArray($ext));
         }
         $this->find("[data-role=imagestore]")->attr("data-ext", $ext);
         if ($max > "") {
             $this->find("[data-role=imagestore]")->attr("data-max", $max);
         }
     }
 }
Example #2
0
function aikiGetForm($form = NULL, $mode = NULL, $engine = false)
{
    if ($form == NULL) {
        $form = $_GET["form"];
    }
    if ($mode == NULL) {
        $mode = $_GET["mode"];
    }
    return formGetForm($form, $mode, $engine);
}