Subversion Repositories SmartDukaan

Rev

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

Rev 16261 Rev 16363
Line 1... Line 1...
1
<div class="container">
1
<div class="container">
2
	<div class="row">
2
	<div class="row">
-
 
3
		<div class="col-lg-3">
-
 
4
			<?php echo $this->Element('adminactions');?>
-
 
5
		</div>
-
 
6
		<div class="col-lg-9">
-
 
7
			<h4>Generate url for sending push notifications for selected brands</h4>
-
 
8
			<div class="row">
3
		<?php if(!empty($categories)):?>
9
				<?php if(!empty($categories)):?>
4
			<?php foreach ($categories as $key => $category):?>
10
					<?php foreach ($categories as $key => $category):?>
5
				<div class="col-xs-6">
11
						<div class="col-xs-6">
6
					<input class="category" type="radio" name="category_id" value="<?php echo $category['Category']['id'];?>"><?php echo $category['Category']['name'];?></input>
12
							<input class="category" type="radio" name="category_id" value="<?php echo $category['Category']['id'];?>"><?php echo $category['Category']['name'];?></input>
7
					<div class="clearfix"></div>
13
							<div class="clearfix"></div>
8
					<?php if(!empty($category['Brand'])):?>
14
							<?php if(!empty($category['Brand'])):?>
9
					<select name="brands" multiple class="brands col-xs-12" data-categoryId="<?php echo $category['Category']['id'];?>">					
15
							<select name="brands" multiple class="brands col-xs-12" data-categoryId="<?php echo $category['Category']['id'];?>">					
10
						<?php foreach ($category['Brand'] as $key => $brand):?>
16
								<?php foreach ($category['Brand'] as $key => $brand):?>
11
						<option value="<?php echo $brand['id'];?>"><?php echo $brand['name'];?></option>	
17
								<option value="<?php echo $brand['id'];?>"><?php echo $brand['name'];?></option>	
12
						<?php endforeach;?>
18
								<?php endforeach;?>
13
					</select>
19
							</select>
14
					<?php endif;?>
20
							<?php endif;?>
15
				</div>								
21
						</div>								
16
			<?php endforeach;?>
22
					<?php endforeach;?>
17
		<?php endif;?>
23
				<?php endif;?>
18
	</div>
24
			</div>
19
	<div class="clearfix mt20"/>
25
			<div class="clearfix mt20"/>
20
	<div class="row text-center">		
26
			<div class="row text-center">		
21
		<div class="col-xs-12">
27
				<div class="col-xs-12">
22
			URL : <textarea name="url" id="url" rows="2" ></textarea>
28
					URL : <textarea name="url" id="url" rows="2" ></textarea>
-
 
29
				</div>
-
 
30
			</div
23
		</div>
31
		</div>
24
	</div
32
	</div>
25
</div>
33
</div>
26
<script type="text/javascript">
34
<script type="text/javascript">
27
var baseurl = 'http://api.profittill.com/brands/filter/';
35
var baseurl = 'http://api.profittill.com/brands/filter/';
28
$(function(){
36
$(function(){
29
	$('.category').on('click',function(){
37
	$('.category').on('click',function(){