123456789101112131415161718 |
- <input type="hidden" name="id" id="id" value="{% if 'info' in data and data['info'] and 'id' in data['info'] and data['info']['id'] > 0 %}{{data['info']['id']}}{% end %}" />
- <div class="block">
- <label><span>产品名称</span><input type="text" name="update_name" id="update_name" value="{% if 'info' in data and data['info'] and 'name' in data['info'] and data['info']['name'] %}{{data['info']['name']}}{% end %}" placeholder="产品名称" /></label>
- <label><span>种植面积</span><input type="text" name="update_area" id="update_area" value="{% if 'info' in data and data['info'] and 'area' in data['info'] and data['info']['area'] %}{{data['info']['area']}}{% end %}" placeholder="如:60亩" /></label>
- <label><span>平均亩产</span><input type="text" name="update_yields" id="update_yields" value="{% if 'info' in data and data['info'] and 'yields' in data['info'] and data['info']['yields'] %}{{data['info']['yields']}}{% end %}" placeholder="如:6000公斤/亩" /></label>
- <label><span>产品特点</span><input type="text" name="update_charact" id="update_charact" value="{% if 'info' in data and data['info'] and 'charact' in data['info'] and data['info']['charact'] %}{{data['info']['charact']}}{% end %}" placeholder="如:味道甜美、含多种维生素、钙含量较高等" /></label>
- <label><span>食用须知</span><input type="text" name="update_notice" id="update_notice" value="{% if 'info' in data and data['info'] and 'notice' in data['info'] and data['info']['notice'] %}{{data['info']['notice']}}{% end %}" placeholder="如:不能与海鲜一同食用。" /></label>
- <div class="form-group">
- <span>产品图片</span>
- <div class="imgbox">
- <a class="upimg img500x500" ><img src="{% if 'info' in data and data['info'] and 'pic' in data['info'] and data['info']['pic'] %}{{data['info']['pic']}}{% else %}data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo1MzMwRkIzMDhDOUMxMUU3QjZENkJFRDMzNkQ4MDIyNiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo1MzMwRkIzMThDOUMxMUU3QjZENkJFRDMzNkQ4MDIyNiI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjUzMzBGQjJFOEM5QzExRTdCNkQ2QkVEMzM2RDgwMjI2IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjUzMzBGQjJGOEM5QzExRTdCNkQ2QkVEMzM2RDgwMjI2Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+eEhyRgAAABBJREFUeNpi+P//PwNAgAEACPwC/tuiTRYAAAAASUVORK5CYII=" {% end %}" width="100%" height="100%" id="upload_pic_show" /><i>500*500</i></a><a class="button">选择<input type="file" class="upload" name="file" id="pic"/><input type="hidden" id="update_pic" name="update_pic" value="{% if 'info' in data and data['info'] and 'pic' in data['info'] and data['info']['pic'] %}{{data['info']['pic']}}{% end %}"/></a>
- </div>
- </div>
- </div>
- <script type="text/javascript">
- Farm.Upload('#pic');
- </script>
|