Blame | Last modification | View Log | RSS feed
<div id="push"></div><div class="container"><?php echo $this->Form->create('Product',array('class'=>'form-inline','action'=>'addviabookmarklet')); ?><div class="row" id="pickImage"><div class="col-lg-5" id="imagePickerDiv"><ul class="list-unstyled thumbnails" id="imagePicker"><li style="margin-left:0;" class="imagelist" id="pick_1"><a class="thumbnail" href="#" style="width:100%"><img id="image_1" src="<?php echo $img;?>" class="masonry span12"/></a></li></ul><!-- Add an edit button, passing the HTML id of the image and the public URL of the image --><div class="mt5 text-center"><input type='image' src='http://images.aviary.com/images/edit-photo.png' value='Edit photo' onclick="return launchEditor('image_1', '<?php echo $img;?>');" /></div></div><div id='preview' class="col-lg-7"><label for="name">Name</label><input value="<?php echo $name;?>" type='text' id="name" name="name" placeholder="Name"></input><div class="clear mb10"></div><label for="price">Price</label><input value="<?php echo $price;?>" type='text' id="price" name="price" placeholder="Price"></input><div class="clear mb10"></div><label for="store">Store</label><input value="<?php echo $store;?>" type='text' id="store" name="store" placeholder="Store"></input><div class="clear mb10"></div><label for="category">Choose Category</label><select id="category" class="profileSelector" name="category_id"><!-- <option value="-1"><?php echo __('Choose Category');?></option>--><?php if(!empty($categories)):?><?php foreach ($categories as $key => $value):?><option value="<?php echo $key;?>"><?php echo $value;?></option><?php endforeach;?><?php endif;?></select><div class="clear mb10"></div><label for="short_description">Short Description</label><textarea style="margin-top: 5px;width: 220px;" id="messageId" rows="3" class="span10" maxlength="500" name="short_description" placeholder="<?php echo __('Short Description');?>"><?php echo $des;?></textarea><div class="clear mb10"></div><label for="tag_line">Tag Line</label><input value="" type='text' id="tag_line" name="tag_line" placeholder="Tag Line"></input><input type="hidden" id="imageUrl" name="img_url" value="<?php echo $img;?>"></input><input value="<?php echo $url;?>" type='hidden' id="url" name="product_url"></input></div></div><div class="clearfix mt5"></div><div class="row"><button type="submit" class="btn btn-danger" id="pinIt">Post</button><div id="validationMessage"></div></div></form></div><style>label{width:100px;}</style>