Example #1
0
echo $title;
?>
 <?php 
echo isset($data['title']) ? _l("Edit", $this) . " " . $data['title'] : _l("Add", $this);
?>
            </header>
            <div class="panel-body">
                <div class=" form">
                    <?php 
mk_hpostform($base_url . $page . "_manipulate" . (isset($data['article_id']) ? "/" . $data['article_id'] : ""));
mk_hselect("data[article_type]", _l('page type', $this), $page_type, "id", "name", isset($data['article_type']) ? $data['article_type'] : null, null, 'style="width:400px"');
mk_hurl_upload("data[avatar]", _l('avatar', $this), isset($data['avatar']) ? $data['avatar'] : '', "avatar");
mk_htext("data[article_name]", _l('article Name', $this), isset($data['article_name']) ? $data['article_name'] : '');
foreach ($languages as $item) {
    mk_htext("data[titles][" . $item["language_id"] . "]", _l('article name', $this) . " (" . $item["language_name"] . ")", isset($titles[$item["language_id"]]) ? $titles[$item["language_id"]]["title_caption"] : "");
}
mk_hnumber("data[article_order]", _l('article order', $this), isset($data['article_order']) ? $data['article_order'] : '');
mk_hcheckbox("data[article_dynamic]", _l('Active extensions search', $this), isset($data['article_dynamic']) && $data['article_dynamic'] == 1 ? 1 : null);
mk_hcheckbox("data[preview]", _l('preview', $this), isset($data['preview']) && $data['preview'] == 1 ? 1 : null);
mk_hcheckbox("data[public]", _l('public', $this), isset($data['public']) && $data['public'] == 1 ? 1 : null);
mk_hcheckbox("data[default]", _l('default', $this), isset($data['default']) && $data['default'] == 1 ? 1 : null);
mk_hsubmit(_l('Submit', $this), $base_url . $page, _l('Cancel', $this));
mk_closeform();
?>
                </div>
            </div>
        </section>
    </div>
</div>
<?php 
mk_popup_uploadfile(_l('Upload Avatar', $this), "avatar", $base_url . "upload_image/20/");
Example #2
0
<div class="row">
    <div class="col-lg-12 col-md-12 col-xs-12">
        <section class="panel">
            <header class="panel-heading">
                <?php 
echo $title;
?>
 <?php 
echo isset($data['title']) ? _l("Edit", $this) . " " . $data['title'] : _l("Add", $this);
?>
            </header>
            <div class="panel-body">
                <div class=" form">
                    <?php 
mk_hpostform($base_url . $page . "_manipulate" . (isset($data['country_id']) ? "/" . $data['country_id'] : ""));
mk_htext("data[country_name]", _l('country Name', $this), isset($data['country_name']) ? $data['country_name'] : '');
foreach ($languages as $item) {
    mk_htext("data[titles][" . $item["language_id"] . "]", _l('country name', $this) . " (" . $item["language_name"] . ")", isset($titles[$item["language_id"]]) ? $titles[$item["language_id"]]["title_caption"] : "");
}
mk_hselect("data[language_id]", _l('language', $this), $languages, "language_id", "language_name", isset($data['language_id']) ? $data['language_id'] : null);
mk_hselect("data[currency_id]", _l('currency', $this), $currency, "currency_id", "title", isset($data['currency_id']) ? $data['currency_id'] : null);
mk_hcheckbox("data[public]", _l('public', $this), isset($data['public']) && $data['public'] == 1 ? 1 : null);
mk_hsubmit(_l('Submit', $this), $base_url . $page, _l('Cancel', $this));
mk_closeform();
?>
                </div>
            </div>
        </section>
    </div>
</div>
Example #3
0
<div class="row">
    <div class="col-lg-12 col-md-12 col-xs-12">
        <section class="panel">
            <header class="panel-heading">
                <?php 
echo $title;
?>
 - <?php 
echo isset($data['title']) ? _l("Edit", $this) . " " . $data['title'] : _l("Add", $this);
?>
            </header>
            <div class="panel-body">
                <div class=" form">
                    <?php 
mk_hpostform($base_url . $page . "_manipulate" . (isset($data['user_id']) ? "/" . $data['user_id'] : ""));
mk_hurl_upload("data[avatar]", _l('avatar', $this), isset($data['avatar']) ? $data['avatar'] : '', "avatar");
mk_htext("data[username]", _l('Username', $this), isset($data['username']) ? $data['username'] : '');
mk_hemail("data[email]", _l('Email', $this), isset($data['email']) ? $data['email'] : '');
mk_htext("data[fullname]", _l('Full Name', $this), isset($data['fullname']) ? $data['fullname'] : '');
mk_hpassword("data[password]", _l('Password', $this));
mk_hcheckbox("data[status]", _l('status', $this), isset($data['status']) && $data['status'] == 1 ? 1 : null);
mk_hsubmit(_l('Submit', $this), $base_url . $page, _l('Cancel', $this));
mk_closeform();
?>
                </div>
            </div>
        </section>
    </div>
</div>
<?php 
mk_popup_uploadfile(_l('Upload Avatar', $this), "avatar", $base_url . "upload_image/21/");
Example #4
0
            $caption = isset($value["caption"]) ? $value["caption"] : "";
            $type = isset($value["type"]) ? $value["type"] : "";
        } else {
            $caption = $key;
            $type = $value;
        }
        if ($type == "text") {
            mk_htext("data[page_more][{$key}]", _l($caption, $this), isset($data['page_more'][$key]) ? $data['page_more'][$key] : '');
        } elseif ($type == "num") {
            mk_hnumber("data[page_more][{$key}]", _l($caption, $this), isset($data['page_more'][$key]) ? $data['page_more'][$key] : '');
        } elseif ($type == "url") {
            mk_hurl("data[page_more][{$key}]", _l($caption, $this), isset($data['page_more'][$key]) ? $data['page_more'][$key] : '');
        } elseif ($type == "textarea") {
            mk_htextarea("data[page_more][{$key}]", _l($caption, $this), isset($data['page_more'][$key]) ? $data['page_more'][$key] : '');
        } elseif ($type == "check") {
            mk_hcheckbox("data[page_more][{$key}]", _l($caption, $this), isset($data['page_more'][$key]) ? 1 : 0);
        }
    }
}
mk_hsubmit(_l('Submit', $this), $base_url . $page, _l('Cancel', $this));
mk_closeform();
?>
                </div>
            </div>
        </section>
    </div>
</div>
<?php 
if (isset($page_type[$data["page_type"]]) && allowed_page_field("image", $page_type[$data["page_type"]])) {
    mk_popup_uploadfile(_l('Upload Avatar', $this), "avatar", $base_url . "upload_image/20/");
}
Example #5
0
                <?php 
echo $title;
?>
 - <?php 
echo isset($data['username']) ? _l("Edit", $this) : _l("Add", $this);
?>
            </header>
            <div class="panel-body">
                <div class=" form">
                    <?php 
mk_hpostform($base_url . $page . "_manipulate" . (isset($data['comment_id']) ? "/" . $data['comment_id'] : ""));
mk_htext("username", _l('Username', $this), isset($data['username']) ? $data['username'] : '', "readonly");
mk_htextarea("data[content]", _l('content', $this), isset($data['content']) ? $data['content'] : '');
mk_hcheckbox("data[status]", _l('status', $this), isset($data['status']) && $data['status'] == 1 ? 1 : null);
if ($data['sub_id'] == 0) {
    mk_htextarea("replay[content]", _l('replay', $this), isset($reply_data['content']) ? $reply_data['content'] : '');
    mk_hcheckbox("replay[status]", _l('replay status', $this), isset($reply_data['status']) && $reply_data['status'] == 1 ? 1 : null);
}
if (isset($reply_data['comment_id'])) {
    mk_hidden("replay[id]", $reply_data['comment_id']);
}
mk_hidden("replay[extension_id]", $data['extension_id']);
mk_hsubmit(_l('Submit', $this), $base_url . $page, _l('Cancel', $this));
mk_closeform();
?>
                </div>
            </div>
        </section>
    </div>
</div>