-
Notifications
You must be signed in to change notification settings - Fork 0
/
Slider.php
98 lines (85 loc) · 4.9 KB
/
Slider.php
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
<?php
$title = 'Slider Management';
$page = 'slider';
require_once('header.php');
require_once('sidebar.php');
?>
<!-- Main Container Start -->
<div id="mws-container" class="clearfix">
<!-- Inner Container Start -->
<div class="container">
<!-- data table-->
<div class="mws-panel grid_8">
<div class="mws-panel-header">
<span><i class="icon-pictures"></i> Slider
<button type="button" id='mws-form-dialog-mdl-btn' recid='newRec'
class="btn btn-success" style="float: right;">
<i class="icon-plus-sign"></i>Add New Slider Image
</button>
</span>
</div>
<div class="mws-panel-body no-padding">
<table class="mws-datatable mws-table" id="dataTableData1">
<thead>
<tr>
<th>Image</th>
<th>Head Caption</th>
<th>Sub caption</th>
<th>Action</th>
</tr>
</thead>
<tbody id = 'sliderDataTable' targetResource='4'>
</tbody>
</table>
</div>
</div>
<!-- modal start-->
<div class="mws-panel grid_4" style = "display: none;">
<div class="mws-panel-content">
<div id="mws-form-dialog">
<form id="mws-validate" class="mws-form" operation="" action="upload.php" enctype="multipart/form-data" method="post">
<input type="hidden" name='table' id="table" value='4'>
<input type="hidden" name='id' id="id" value=''>
<div id="mws-validate-error" class="mws-form-message error" style="display:none;"></div>
<div class="mws-form-inline">
<div class="mws-form-row">
<label class="mws-form-label" id='lblImgName'>Image Name</label>
<div class="mws-form-item">
<input type="text" name="txtImgName" class="required" id="txtImgName" name = "txtImgName" >
</div>
</div>
<div class="mws-form-row">
<label class="mws-form-label" id='lblImgCaption'>Head Caption</label>
<div class="mws-form-item">
<input type="text" name="txtHeadCaption" class="required" id="txtHeadCaption" >
</div>
</div>
<div class="mws-form-row">
<label class="mws-form-label" id='lblImgCat'>Sub Caption</label>
<div class="mws-form-item">
<input type="text" name="txtSubCaption" class="required" id="txtSubCaption">
</div>
</div>
<div class="mws-form-row">
<label class="mws-form-label">Choose File</label>
<div class="mws-form-item">
<input type="file" name="fileToUpload" id="fileToUpload" class="required">
<label for="picture" class="error" generated="true" style="display:none"></label>
</div>
<div class="mws-form-item">
<img id="fileImg" src="" height="100" width= "100">
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
<!-- modal end-->
</div>
<!-- Inner Container End -->
<?php
require_once('portfolio_slider.php');
?>
<script src="js/portfolio_slider.js"></script>