aboutsummaryrefslogtreecommitdiffstats
path: root/openo-portal/portal-resmgr/openo-brs/port.html
blob: 13798522c1392a9ad2257ea9d3199e3b2281c347 (plain)
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
<!DOCTYPE html>
<html>
<head>
	<head lang="en">
	<meta charset="UTF-8">
	<title></title>
	<link href="css/bootstrap.min.css" rel="stylesheet" />
	<link href="css/VMMain.css" rel="stylesheet" />
	<link href="css/bootstrap-table.min.css" rel="stylesheet" />
	<script type="text/javascript" src="js/jquery-1.11.2.min.js"></script>
    <script type="text/javascript" src="js/bootstrap.min.js"></script>	
	<script type="text/javascript" src="js/brs.js"></script>
	<script type="text/javascript" src="js/bootstrap-table.min.js"></script>
	<script type="text/javascript">
	$(document).ready(function() {
       
       var jsondata = [];
	   jsondata = loadPortData();

		$('#port').bootstrapTable({
		//Assigning data to table
		data: jsondata
		});
    });
	function operateFormatter(value, row, index) {
        return [
            '<img class="siteDeleteImg" src="images/delete.png" href="javascript:void(0)" style="cursor: pointer" name="title" title="Delete" />'
        ].join('');
        
    }
	 window.operateEvents = {
         'click .siteDeleteImg': function (e, value, row, index) {
             
			 deletePort(row.id);
             console.log(value, row, index);
         }
     };
	</script>
</head>
<body id="open_base_site_cotentBody" class="cotentBody ng-scope">
	
	
		<div class="uploadBtn">
			<div id="open_base_tpL_userHeader" class="userHeader">
            <div id="open_base_tpL_buttonGroup" class="openoButton_buttonGroupClass">
                <div class="openo openo-widget-button openoButton_buttonClass_parent ng-isolate-scope openoButton_buttonClass defaultbutton openoButton_button_default" tabindex="0" id="false" text="res.brApp_ui_res_btn_create" icon-url="./images/add.png" cls="defaultbutton" click="clickAdd" style="display: inline-block; padding-left: 0px; padding-right: 0px;"><div class="openoButton_buttonInnerClass openo-corner-all openoButton_Image" id="false_button"><span class="openo-widget-button-image openoButton_buttonLeftImg" style="background-image: url(images/add.png);"></span><span class="openoButton_buttonCenterText openoButton_buttonCenterTextFont">Create</span><span class="openo-widget-button-image openoButton_buttonImgDefault"></span></div></div>
            </div>
        </div>
		</div>
		
		<div class="row-fluid" data-name="table_zone">
			<div id='ict_virtualApplication_table_div'>
                <div>
                    <div class="top">
                        <table id="port" data-pagination="true" data-page-size="5" data-pagination-first-text="First" data-pagination-pre-text="Previous" data-pagination-next-text="Next" data-pagination-last-text="Last">
                            <thead id="portTable_thead" class="openo-table-thead">
								<tr class="active">
									<th class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign" data-field="name" data-sortable="true">
										<div class="openo-table-th-border"></div>
										<div class="DataTables_sort_wrapper openo-ellipsis ">
											<span id="portName_sorticon" class="openo-table-th-sorticon overflow_elip openoTable_sortable leftHeaderAlign  openo-table-disable-element ">Name
                                             </span>
					                    </div>
					                </th>
					                <th class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign" data-field="meID" data-sortable="true">
						                <div class="openo-table-th-border"></div>
						                <div class="DataTables_sort_wrapper openo-ellipsis ">
							                <span id="portmeID_sorticon" class="openo-table-th-sorticon overflow_elip  leftHeaderAlign  openo-table-disable-element ">ME
                                            </span>
										</div>
									</th>
									<th class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign" data-field="logicalType" data-sortable="true">
						                <div class="openo-table-th-border"></div>
						                <div class="DataTables_sort_wrapper openo-ellipsis ">
							                <span id="portLogicalType_sorticon" class="openo-table-th-sorticon overflow_elip  leftHeaderAlign  openo-table-disable-element ">Type
                                            </span>
										</div>
									</th>
									<th class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign" data-field="layerRate" data-sortable="true">
						                <div class="openo-table-th-border"></div>
						                <div class="DataTables_sort_wrapper openo-ellipsis ">
							                <span id="portLayerRate_sorticon" class="openo-table-th-sorticon overflow_elip  leftHeaderAlign  openo-table-disable-element ">Layer Rate
                                            </span>
										</div>
									</th>
									<th class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign" data-field="isEdgePoint" data-sortable="true">
						                <div class="openo-table-th-border"></div>
						                <div class="DataTables_sort_wrapper openo-ellipsis ">
							                <span id="portIsEdgePoint_sorticon" class="openo-table-th-sorticon overflow_elip  leftHeaderAlign  openo-table-disable-element ">Edge Point
                                            </span>
										</div>
									</th>
									<th class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign" data-field="portIndex" data-sortable="true">
						                <div class="openo-table-th-border"></div>
						                <div class="DataTables_sort_wrapper openo-ellipsis ">
							                <span id="portIndex_sorticon" class="openo-table-th-sorticon overflow_elip  leftHeaderAlign  openo-table-disable-element ">Port Index
                                            </span>
										</div>
									</th>
									<th class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign" data-field="ipAddress" data-sortable="true">
						                <div class="openo-table-th-border"></div>
						                <div class="DataTables_sort_wrapper openo-ellipsis ">
							                <span id="portIpAddress_sorticon" class="openo-table-th-sorticon overflow_elip  leftHeaderAlign  openo-table-disable-element ">IP Address
                                            </span>
										</div>
									</th>
									<th class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign" data-field="adminState" data-sortable="true">
						                <div class="openo-table-th-border"></div>
						                <div class="DataTables_sort_wrapper openo-ellipsis ">
							                <span id="portAdminState_sorticon" class="openo-table-th-sorticon overflow_elip  leftHeaderAlign  openo-table-disable-element ">Admin State
                                            </span>
										</div>
									</th>
									<th class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign" data-field="operState" data-sortable="true">
						                <div class="openo-table-th-border"></div>
						                <div class="DataTables_sort_wrapper openo-ellipsis ">
							                <span id="portOperState_sorticon" class="openo-table-th-sorticon overflow_elip  leftHeaderAlign  openo-table-disable-element ">Operating State
                                            </span>
										</div>
									</th>
									<th class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign" align="center" data-formatter = "operateFormatter" data-events="operateEvents">
						                <div class="openo-table-th-border"></div>
						                <div class="DataTables_sort_wrapper openo-ellipsis ">
							                <span id="portAction_sorticon" class="openo-table-th-sorticon overflow_elip  leftHeaderAlign  openo-table-disable-element ">Action</span>
										</div>
									</th>
					            </tr>
						    </thead>
							<!-- <tbody>
								<tr style="display: none;">
									<td colspan="7" style="text-align: center;">NULL</td>
								</tr>
								<tr class="odd  openo-table-tr openo-table-disable-element" data-rowid="0" data-tableid="siteTable">
									<td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteName" data-tableid="siteTable">
										<div class="openo-table-disable-element overflow_elip leftDataAlign">
											<a class="openo-table-disable-element hyperLinkRow" href="javascript:void(0)" id="siteTable_0_portName_link"></a>Port1</div>
									</td>
									<td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteType" data-tableid="siteTable"><div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element" >ME</div>
                                    </td>
									<td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteTenantName" data-tableid="siteTable"><div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element" >Type</div>
                                    </td>
									<td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteTenantName" data-tableid="siteTable"><div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element" >12</div>
                                    </td>
									<td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteTenantName" data-tableid="siteTable"><div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element" >Edge</div>
                                    </td>
									<td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteTenantName" data-tableid="siteTable"><div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element" >12345</div>
                                    </td>
									<td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteTenantName" data-tableid="siteTable"><div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element" >255.255.255.123</div>
                                    </td>
									<td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteTenantName" data-tableid="siteTable"><div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element" >UP</div>
                                    </td>
									<td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteTenantName" data-tableid="siteTable"><div class="overflow_elip leftDataAlign openo-table-custom-el openo-table-disable-element" >UP</div>
                                    </td>
									<td class="openo-table-disable-element openo-table-td overflow_elip leftDataAlign tableHeaderTDTopBorderColor" data-colid="siteOperation" data-tableid="siteTable">
                                        <div class="openo-table-disable-element overflow_elip leftDataAlign openo-table-custom-el" id="siteTable_0_siteOperation_custom_el">
										    <div>
										    	<img src="images/delete.png" href="javascript:void(0)" onclick="deletePort('this');" opertype="siteDelete" style="cursor: pointer" title="Delete" id="bac4ff3c-d693-4f54-86cd-25af1ea22f59" rowid="0/">
											</div>
										</div>
									</td>
								</tr>
							</tbody> -->
                        </table>
                    </div>
                </div>
            </div>
		</div>
		<!-- <div id="tpListopenotable_pagination_wrapper" class="openo-table-pagination-wrapper" style="display: block;"><div class="pagination-container openo-pagination-theme openo-pagination"><div class="openoPagination_openoPaginationLengthOptions" id="tpListopenotable_wrapper_div"><input readonly="true" class="openo-pagination-select openopaginationselect" value="" id="tpListopenotable_wrapper_input" actualval="20" style="width: 32px;"><span class="openo-pagination-selectspan openopaginationselectspan" id="tpListopenotable_wrapper_trigger"></span></div><label style="display: block;float:left;">Total records: 23</label><li class="active"><span class="current prev openo-disabled" id="tpListopenotable_wrapper_prev">&nbsp;</span></li><ul><li class="active"><span class="current" id="tpListopenotable_wrapper_page_link_1">1</span></li><li><a class="page-link" id="tpListopenotable_wrapper_page_link_2">2</a></li><li><a class="page-link" id="tpListopenotable_wrapper_page_link_3">3</a></li><li><a class="page-link next" id="tpListopenotable_wrapper_next">&nbsp;</a></li></ul></div></div> -->

		<div id="vmAppDialog" class="modal fade" tabindex="-1" role="dialog"
				aria-labelledby="myModalLabel" aria-hidden="false">
				<div class="modal-dialog">
					<div class="modal-content">						
						<div class="content">
							<div class="modal-header">
								<button type="button" class="close" data-dismiss="modal" 
					               aria-hidden="true">×
					            </button>
								<h4 class="modal-title" id="myModalLabel">
					               <span>Create</span>
					            </h4>
							</div>
							<form class="form-horizontal" role="form" id="portForm">
							<div id="wizard">
							<div class="modal-body">							
								<ul class="nav nav-pills nav-justified vmapp-margin">
								</ul>
								<div class="tab-content">
									<div class="tab-pane active" id="basicTab">
										<div class="form-group" ms-class="has-error:vmAppDialog.name==''">
											<label class="col-sm-3 control-label">
												<span>Name</span>
												<span class="required">*</span>
											</label>
											<div class="col-sm-7">
												<input type="text" id="name" name="name" class="form-control" placeholder="Name"/> 
											</div>
										</div>
										<div class="form-group" ms-class="has-error:vmAppDialog.name==''">
											<label class="col-sm-3 control-label">
												<span>ME</span>
											</label>
											<div class="col-sm-7">
												<input type="text" id="meID" name="meID" class="form-control" placeholder="ME"/> 
											</div>
										</div>
										<div class="form-group">
											<label class="col-sm-3 control-label">
												<span>Type</span>												
											</label>
										 	<div class="col-sm-7">
												<select class="form-control" style ="padding-top: 0px;padding-bottom: 0px;" id="logicalType" 
												        name="logicalType">
													<option value="ETH">ETH</option>
													<option value="POS">POS</option>
													<option value="Trunk">Trunk</option>
													<option value="Loopback">Loopback</option>
												</select>
											</div>
										</div>
										<div class="form-group" ms-class="has-error:vmAppDialog.name==''">
											<label class="col-sm-3 control-label">
												<span>Layer Rate</span>
											</label>
											<div class="col-sm-7">
												<input type="text" id="layerRate" name="layerRate" class="form-control" placeholder="Layer Rate"/> 
											</div>
										</div>
										<div class="form-group">
											<label class="col-sm-3 control-label">
												<span>Edge Point</span>												
											</label>
										 	<div class="col-sm-7">
												<select class="form-control" style ="padding-top: 0px;padding-bottom: 0px;" id="isEdgePoint" 
												        name="isEdgePoint">
													<option value="true">True</option>
													<option value="false">False</option>
												</select>
											</div>
										</div>
										<div class="form-group" ms-class="has-error:vmAppDialog.name==''">
											<label class="col-sm-3 control-label">
												<span>Port Index</span>
											</label>
											<div class="col-sm-7">
												<input type="text" id="portIndex" name="portIndex" class="form-control" placeholder="Port Index"/> 
											</div>
										</div>
										
										<div class="form-group">
											<label class="col-sm-3 control-label">
												<span>IP Address</span>&nbsp;&nbsp;&nbsp;
											</label>
										 	<div class="col-sm-7">
												<input type="text" id="ipAddress" name="ipAddress" class="form-control" placeholder="255.255.255.255"/>
											</div>
										</div>
									</div>
								</div>
							</div>
							<div class="modal-footer">							
								<button type="button" class="btn SDBtn" data-dismiss="modal" aria-hidden="true" id="createPort">
									<span id="nfv-virtualApplication-iui-text-cancelBtn">OK</span>
								</button>							
								<button type="button" class="btn button-previous SDBtn">
									<span id="nfv-virtualApplication-iui-text-previousBtn">Cancel</span>
								</button>
								
							</div>
						</div>				
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div id="filterTpLogicalType_select_popupcontainer" class="openo openo-select-popup-container openo-hide" style="width: 155px; max-height: 130px; left: 628px; top: 104px; z-index: 1761;"><div class="openo-select-item openo-ellipsis  " id="filterTpLogicalType_openo-select-id_0"><label class="openo-ellipsis openo-select-blank-item" style="width: 100%; display: block; height: 20px;"></label></div><div class="openo-select-item openo-ellipsis  " id="filterTpLogicalType_openo-select-id_1"><label class="openo-ellipsis " style="width: 100%; display: block; height: 20px;">ETH</label></div><div class="openo-select-item openo-ellipsis  " id="filterTpLogicalType_openo-select-id_2"><label class="openo-ellipsis " style="width: 100%; display: block; height: 20px;" title="POS">POS</label></div><div class="openo-select-item openo-ellipsis  " id="filterTpLogicalType_openo-select-id_3"><label class="openo-ellipsis " style="width: 100%; display: block; height: 20px;">Trunk</label></div><div class="openo-select-item openo-ellipsis  " id="filterTpLogicalType_openo-select-id_4"><label class="openo-ellipsis " style="width: 100%; display: block; height: 20px;">Loopback</label></div></div>


</body>
</html>