2015-03-06 23:33:54 +00:00
|
|
|
<vn>
|
|
|
|
<div id="form" class="photos">
|
|
|
|
<div class="box">
|
|
|
|
<div class="header">
|
|
|
|
<h1><t>Photos</t></h1>
|
|
|
|
</div>
|
|
|
|
<div class="body">
|
2015-03-27 19:10:49 +00:00
|
|
|
<form
|
2015-09-23 22:59:52 +00:00
|
|
|
id="html-form"
|
2015-03-27 19:10:49 +00:00
|
|
|
method="post"
|
|
|
|
enctype="multipart/form-data"
|
|
|
|
target="photos-iframe"
|
|
|
|
on-submit="onFormSubmit">
|
2015-03-06 23:33:54 +00:00
|
|
|
<div class="form-group">
|
2015-06-30 12:06:19 +00:00
|
|
|
<label><t>Id</t></label>
|
2015-03-06 23:33:54 +00:00
|
|
|
<input type="number" name="id" id="photo-id"/>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2015-06-30 12:06:19 +00:00
|
|
|
<label><t>ImageName</t></label>
|
2015-03-06 23:33:54 +00:00
|
|
|
<input type="text" name="name"/>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2015-06-30 12:06:19 +00:00
|
|
|
<label><t>Schema</t></label>
|
2015-03-06 23:33:54 +00:00
|
|
|
<input type="hidden" name="schema" id="schema-field"/>
|
|
|
|
<htk-combo id="schema">
|
|
|
|
<db-model property="model">
|
|
|
|
SELECT name, `desc` FROM image_schema ORDER BY `desc`
|
|
|
|
</db-model>
|
|
|
|
</htk-combo>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2015-06-30 12:06:19 +00:00
|
|
|
<label><t>ImageFile</t></label>
|
2015-03-06 23:33:54 +00:00
|
|
|
<input type="file" name="image"/>
|
|
|
|
<input type="hidden" name="MAX_FILE_SIZE" id="photo-size"/>
|
|
|
|
</div>
|
2015-09-03 23:28:07 +00:00
|
|
|
<button class="flat" id="submit">
|
2015-03-06 23:33:54 +00:00
|
|
|
<t>Upload</t>
|
|
|
|
</button>
|
|
|
|
</form>
|
2015-03-27 19:10:49 +00:00
|
|
|
<iframe
|
|
|
|
id="iframe"
|
|
|
|
name="photos-iframe"
|
|
|
|
on-load="onImageUpload"/>
|
2015-03-06 23:33:54 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</vn>
|