ebay_profile_form_template.tpl
9.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<?php echo $header; ?><?php echo $column_left; ?>
<div id="content">
<div class="page-header">
<div class="container-fluid">
<div class="pull-right">
<a data-toggle="tooltip" title="<?php echo $button_save; ?>" class="btn btn-primary" onclick="$('#form').submit();"><i class="fa fa-check-circle"></i></a>
<a href="<?php echo $cancel; ?>" data-toggle="tooltip" title="<?php echo $button_cancel; ?>" class="btn btn-default"><i class="fa fa-reply"></i></a>
</div>
<h1><?php echo $heading_title; ?></h1>
<ul class="breadcrumb">
<?php foreach ($breadcrumbs as $breadcrumb) { ?>
<li><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a></li>
<?php } ?>
</ul>
</div>
</div>
<div class="container-fluid">
<?php if ($error_warning) { ?>
<div class="alert alert-danger"><i class="fa fa-exclamation-circle"></i> <?php echo $error_warning; ?></div>
<?php } ?>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><i class="fa fa-list"></i> <?php echo $text_manage; ?></h3>
</div>
<div class="panel-body">
<form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="form" class="form-horizontal">
<input type="hidden" name="type" value="<?php echo $type; ?>" />
<input type="hidden" name="ebay_profile_id" value="<?php echo $ebay_profile_id; ?>" />
<ul class="nav nav-tabs">
<li class="active"><a href="#tab-general" data-toggle="tab"><?php echo $tab_general; ?></a></li>
<li><a href="#tab-template" data-toggle="tab"><?php echo $tab_template; ?></a></li>
<li><a href="#tab-gallery" data-toggle="tab"><?php echo $tab_gallery; ?></a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="tab-general">
<div class="form-group">
<label class="col-sm-2 control-label"><?php echo $text_profile_default; ?></label>
<div class="col-sm-10">
<input type="hidden" name="default" value="0" />
<input type="checkbox" name="default" value="1" <?php if ($default == 1){ echo 'checked="checked"'; } ?> />
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label" for="name"><?php echo $text_profile_name; ?></label>
<div class="col-sm-10">
<input type="text" name="name" value="<?php if (isset($name)){ echo $name; } ?>" placeholder="<?php echo $text_profile_name; ?>" id="name" class="form-control" />
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label" for="description"><?php echo $text_profile_desc; ?></label>
<div class="col-sm-10">
<textarea name="description" class="form-control" rows="3" id="description"><?php if (isset($description)){ echo $description; } ?></textarea>
</div>
</div>
</div>
<div class="tab-pane" id="tab-template">
<div class="form-group">
<label class="col-sm-2 control-label"><?php echo $text_template_choose; ?></label>
<div class="col-sm-10">
<select name="data[ebay_template_id]" class="form-control">
<option value="None">None</option>
<?php foreach($templates as $template){ ?>
<?php echo '<option value="'.$template['template_id'].'"'.(($template['template_id'] == $data['ebay_template_id'])?' selected':'').'>'.$template['name'].'</option>'; ?>
<?php } ?>
</select>
<span class="help-block"><?php echo $text_template_choose_help; ?></span>
</div>
</div>
</div>
<div class="tab-pane" id="tab-gallery">
<div class="form-group">
<label class="col-sm-2 control-label" for="name"><?php echo $text_image_gallery; ?></label>
<div class="col-sm-10">
<div class="row">
<div class="col-sm-3">
<div class="input-group">
<span class="input-group-addon"><?php echo $text_width; ?></span>
<input type="text" name="data[ebay_gallery_height]" value="<?php if (isset($data['ebay_gallery_height'])){ echo $data['ebay_gallery_height']; }?>" maxlength="4" class="form-control" />
<span class="input-group-addon"><?php echo $text_px; ?></span>
</div>
</div>
<div class="col-sm-3">
<div class="input-group">
<span class="input-group-addon"><?php echo $text_height; ?></span>
<input type="text" name="data[ebay_gallery_width]" value="<?php if (isset($data['ebay_gallery_width'])){ echo $data['ebay_gallery_width']; }?>" maxlength="4" class="form-control" />
<span class="input-group-addon"><?php echo $text_px; ?></span>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<span class="help-block"><?php echo $text_image_gallery_help; ?></span>
</div>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label" for="name"><?php echo $text_image_thumb; ?></label>
<div class="col-sm-10">
<div class="row">
<div class="col-sm-3">
<div class="input-group">
<span class="input-group-addon">Width</span>
<input type="text" name="data[ebay_thumb_height]" value="<?php if (isset($data['ebay_thumb_height'])){ echo $data['ebay_thumb_height']; }?>" maxlength="4" class="form-control" />
<span class="input-group-addon">px</span>
</div>
</div>
<div class="col-sm-3">
<div class="input-group">
<span class="input-group-addon">Height</span>
<input type="text" name="data[ebay_thumb_width]" value="<?php if (isset($data['ebay_thumb_width'])){ echo $data['ebay_thumb_width']; }?>" maxlength="4" class="form-control" />
<span class="input-group-addon">px</span>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<span class="help-block"><?php echo $text_image_thumb_help; ?></span>
</div>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label"><?php echo $text_image_super; ?></label>
<div class="col-sm-10">
<input type="hidden" name="data[ebay_supersize]" value="0" />
<input type="checkbox" name="data[ebay_supersize]" value="1" <?php if (isset($data['ebay_supersize']) && $data['ebay_supersize'] == 1){ echo 'checked="checked"'; } ?> />
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label"><?php echo $text_image_gallery_plus; ?></label>
<div class="col-sm-10">
<input type="hidden" name="data[ebay_gallery_plus]" value="0" />
<input type="checkbox" name="data[ebay_gallery_plus]" value="1" <?php if (isset($data['ebay_gallery_plus']) && $data['ebay_gallery_plus'] == 1){ echo 'checked="checked"'; } ?> />
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label"><?php echo $text_image_all_ebay; ?></label>
<div class="col-sm-10">
<input type="hidden" name="data[ebay_img_ebay]" value="0" />
<input type="checkbox" name="data[ebay_img_ebay]" value="1" <?php if (isset($data['ebay_img_ebay']) && $data['ebay_img_ebay'] == 1){ echo 'checked="checked"'; } ?> />
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label"><?php echo $text_image_all_template; ?></label>
<div class="col-sm-10">
<input type="hidden" name="data[ebay_img_template]" value="0" />
<input type="checkbox" name="data[ebay_img_template]" value="1" <?php if (isset($data['ebay_img_template']) && $data['ebay_img_template'] == 1){ echo 'checked="checked"'; } ?> />
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label"><?php echo $text_image_exclude_default; ?></label>
<div class="col-sm-10">
<input type="hidden" name="data[default_img_exclude]" value="0" />
<input type="checkbox" name="data[default_img_exclude]" value="1" <?php if (isset($data['default_img_exclude']) && $data['default_img_exclude'] == 1){ echo 'checked="checked"'; } ?> />
<span class="help-block"><?php echo $text_image_exclude_default_help; ?></span>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<?php echo $footer; ?>