Subversion Repositories SmartDukaan

Rev

Rev 17597 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 17597 Rev 17895
Line 66... Line 66...
66
			<input type= "button" value='Preview' id="preview" class='btn btn-primary'>
66
			<input type= "button" value='Preview' id="preview" class='btn btn-primary'>
67
 
67
 
68
			<h2>Current Image</h2>
68
			<h2>Current Image</h2>
69
			<img src="<?php echo $Objects['img_url']?>" style="max-width:100%;">
69
			<img src="<?php echo $Objects['img_url']?>" style="max-width:100%;">
70
		</div>
70
		</div>
-
 
71
 
-
 
72
 
-
 
73
		
-
 
74
 
71
		<div class="col-lg-5">
75
        <div class="col-lg-5">
72
			<div class="objects form">
76
            <br><br>
-
 
77
            
73
			<?php echo $this->Form->create('Objects'); ?>
78
            <?php echo $this->Form->create('Objects'); ?>
74
				<fieldset>
79
                <fieldset>
75
				<?php
80
                <?php
76
					echo $this->Form->input('name',array('value'=>$Objects['name']));
81
                   echo $this->Form->input('name',array('value'=>$Objects['name']));
77
					echo $this->Form->input('link1',array('type'=>'textarea','value'=>$Objects['link1']));
82
                   echo $this->Form->input('img_url',array('type'=>'hidden','value'=>$Objects['img_url']));
-
 
83
                   echo $this->Form->input('template_id',array('type'=>'hidden','value'=>$Objects['template_id']));
-
 
84
                ?>
-
 
85
                <div id="template1" class="<?php if($Objects['template_id']==2):?><?php echo "hidden";?><?php endif;?>" >
-
 
86
                <?php
78
					echo $this->Form->input('link2',array('type'=>'textarea','value'=>$Objects['link2']));
87
                    echo $this->Form->input('link1',array('type'=>'textarea','value'=>$Objects['link1']));
79
					echo $this->Form->input('link3',array('type'=>'textarea','value'=>$Objects['link3']));
88
                    echo $this->Form->input('link2',array('type'=>'textarea','value'=>$Objects['link2']));
80
					echo $this->Form->input('link4',array('type'=>'textarea','value'=>$Objects['link4']));
89
                    echo $this->Form->input('link3',array('type'=>'textarea','value'=>$Objects['link3']));
81
					echo $this->Form->input('link5',array('type'=>'textarea','value'=>$Objects['link5']));
90
                    echo $this->Form->input('link4',array('type'=>'textarea','value'=>$Objects['link4']));
82
					echo $this->Form->input('img_url',array('type'=>'hidden','value'=>$Objects['img_url']));
91
                    echo $this->Form->input('link5',array('type'=>'textarea','value'=>$Objects['link5']));                
83
				?>
92
                ?>
-
 
93
                </div>
-
 
94
                <div class="<?php if($Objects['template_id']==1):?><?php echo "hidden";?><?php endif;?>" id="template2">                    
-
 
95
                    <?php echo $this->Form->input('link',array('value'=>$Objects['link']));?>                    
-
 
96
                </div>
84
				</fieldset>
97
                </fieldset>
85
			<?php echo $this->Form->end(__('Submit')); ?>
98
            <?php echo $this->Form->end(__('Submit')); ?>
86
			</div>
99
        </div>
-
 
100
 
87
		</div>
101
 
88
		</div>		
102
		</div>		
89
	</div>
103
	</div>
90
</div>
104
</div>
91
<script src="//cdn.ckeditor.com/4.5.2/full/ckeditor.js"></script>
105
<script src="//cdn.ckeditor.com/4.5.2/full/ckeditor.js"></script>
92
<script type="text/javascript">
106
<script type="text/javascript">