<div id="example" class="modal hide fade in"
	style="display: none; width: 700px; overflow: visible; left: 45%;">

	<div class="modal-header">
		<a class="close" href="<?php echo $link->link('new_client',Admin);?>">x</a>


		<div class="modal-body">
			<form class="form-horizontal" method="post" action="">
				<div class="control-group">
					<label class="control-label" for="amount">Status</label>
					<div class="controls">
						<input type="text" name="name">
					</div>
					<!-- /controls -->
				</div>
				<!-- /control-group -->

				<div class="row-fluid">
					<div class="control-group">
						<label class="control-label" for="amount">Colors</label>
						<div class="controls">

							<div class="span3">
								<span class="badge">Light Grey</span>&nbsp;
							</div>
							<div class="span1">
								<input name="radio" type="radio" value="badge"> <span
									class="lbl"></span>
							</div>
							<div class="span3">
								<span class="badge badge-grey">Dark Grey</span>&nbsp;
							</div>
							<div class="span1">
								<input name="radio" type="radio" value="badge badge-grey"> <span
									class="lbl"></span>
							</div>
							<div class="span3">
								<span class="badge badge-success">Green</span>
							</div>
							<div class="span1">
								<input name="radio" type="radio" value="badge badge-success"> <span
									class="lbl"></span>
							</div>
						</div>
						<!-- /controls -->
					</div>
					<!-- /control-group -->
				</div>

				<div class="row-fluid">
					<div class="control-group">
						<label class="control-label" for="amount"></label>
						<div class="controls">

							<div class="span3">
								<span class="badge badge-warning">Orange</span>
							</div>
							<div class="span1">
								<input name="radio" type="radio" value="badge badge-warning"> <span
									class="lbl"></span>
							</div>
							<div class="span3">
								<span class="badge badge-important">Red</span>
							</div>
							<div class="span1">
								<input name="radio" type="radio" value="badge badge-important">
								<span class="lbl"></span>
							</div>
							<div class="span3">
								<span class="badge badge-info">Blue</span>
							</div>
							<div class="span1">
								<input name="radio" type="radio" value="badge badge-info"> <span
									class="lbl"></span>
							</div>
						</div>
						<!-- /controls -->
					</div>
					<!-- /control-group -->
				</div>

				<div class="row-fluid">
					<div class="control-group">
						<label class="control-label" for="amount"></label>
						<div class="controls">

							<div class="span3">
								<span class="badge badge-purple">Purple</span>
							</div>
							<div class="span1">
								<input name="radio" type="radio" value="badge badge-purple"> <span
									class="lbl"></span>
							</div>
							<div class="span3">
								<span class="badge badge-inverse">Black</span>
							</div>
							<div class="span1">
								<input name="radio" type="radio" value="badge badge-inverse"> <span
									class="lbl"></span>
							</div>
							<div class="span3">
								<span class="badge badge-pink">Pink</span>
							</div>
							<div class="span1">
								<input name="radio" type="radio" value="badge badge-pink"> <span
									class="lbl"></span>
							</div>
						</div>
						<!-- /controls -->
					</div>
					<!-- /control-group -->
				</div>

				<div class="row-fluid">
					<div class="control-group">
						<label class="control-label" for="amount"></label>
						<div class="controls">

							<div class="span3">
								<span class="badge badge-yellow">Yellow</span>
							</div>
							<div class="span1">
								<input name="radio" type="radio" value="badge badge-yellow"> <span
									class="lbl"></span>
							</div>

						</div>
						<!-- /controls -->
					</div>
					<!-- /control-group -->
				</div>

				<div class="form-actions">
					<button class="btn btn-info btn-small" type="submit"
						name="sta_button">
						<i class="icon-ok"></i> Submit
					</button>
				</div>
			</form>

			<table id="sample-table-2"
				class="table table-striped table-bordered table-hover">
				<thead>
					<tr>
						<th>S.no</th>
						<th>Name</th>
						<th></th>
					</tr>
				</thead>

				<tbody>
				<?php
				$a = 1;
				$totalstatus = $db->get_all ( "status" );
				foreach ( $totalstatus as $row1 ) {
					?>
					<tr>
						<td><?php echo $a;?></td>
						<td><?php echo $row1['name'];?></td>
						<td>
							<div class="hidden-phone visible-desktop action-buttons">

								<a class="green"
									href="<?php echo $link->link('edit_status', Admin, '?id='.$row1['id']); ?>">
									<i class="icon-pencil bigger-130"></i>
								</a> <a class="red"
									href="<?php echo $link->link('new_client',Admin, '?delete='.$row1['id']); ?>">
									<i class="icon-trash bigger-130"></i>
								</a>

							</div>
						</td>
					</tr>
				<?php $a++; }?>				
				</tbody>
			</table>
		</div>
		<!-- .modal body -->

	</div>

</div>
<!-- .example -->


<div class="page-content">
	<div class="page-header position-relative"></div>
	<!--/.page-header-->

	<div class="row-fluid">
		<div class="span12">
			<!--PAGE CONTENT BEGINS-->

			<div class="row-fluid">
				<div class="span12">
					<div class="widget-box">
						<div class="widget-header widget-header-blue widget-header-flat">
							<h4 class="lighter">New Client Account</h4>


						</div>

						<div class="widget-body">
							<div class="widget-main">
								<div class="row-fluid">


									<div class="step-content row-fluid position-relative"
										id="step-container">
										<div class="step-pane active">

											<form class="form-horizontal" method="post" action="">

												<div class="control-group">
													<label class="control-label">Full Name</label>
													<div class="controls">
														<input type="text" class="span6" name="client[full_name]">
													</div>
													<!-- /controls -->
												</div>
												<!-- /control-group -->

												<div class="control-group">
													<label class="control-label">Email</label>
													<div class="controls">
														<input type="text" class="span6" name="client[email]">
													</div>
													<!-- /controls -->
												</div>
												<!-- /control-group -->


												<div class="control-group">
													<label class="control-label">Company</label>
													<div class="controls">
														<input type="text" class="span6" name="client[c_name]">
													</div>
													<!-- /controls -->
												</div>
												<!-- /control-group -->

												<div class="control-group">
													<label class="control-label">Address</label>
													<div class="controls">
														<textarea id="form-field-11"
															class="autosize-transition span6" name="client[address]"></textarea>
													</div>
													<!-- /controls -->
												</div>
												<!-- /control-group -->

												<div class="control-group">
													<label class="control-label">Country</label>
													<div class="controls">
														<input type="text" name="client[country]" class="span6">
													</div>
													<!-- /controls -->
												</div>
												<!-- /control-group -->

												<div class="control-group">
													<label class="control-label">Telephone</label>
													<div class="controls">
														<input type="text" name="client[telephone]" class="span6">
													</div>
													<!-- /controls -->
												</div>
												<!-- /control-group -->


												<div class="control-group">
													<label class="control-label">Mobile</label>
													<div class="controls">
														<input type="text" name="client[mobile]" class="span6">
													</div>
													<!-- /controls -->
												</div>
												<!-- /control-group -->

												<div class="control-group">
													<label class="control-label">Skype</label>
													<div class="controls">
														<input type="text" name="client[skype]" class="span6">
													</div>
													<!-- /controls -->
												</div>
												<!-- /control-group -->



												<div class="control-group">
													<label class="control-label">Gtalk</label>
													<div class="controls">
														<input type="text" name="client[gtalk]" class="span6">
													</div>
													<!-- /controls -->
												</div>
												<!-- /control-group -->

												<div class="control-group">
													<label class="control-label">Notes</label>
													<div class="controls">
														<textarea id="form-field-11"
															class="autosize-transition span6" name="client[notes]"></textarea>

													</div>
													<!-- /controls -->
												</div>
												<!-- /control-group -->

												<div class="control-group">
													<label class="control-label ">Priority</label>
													<div class="controls">
														<select name="client[status]" class="span6">
															<option value="" selected="selected" disabled="disabled">Select
																Priority</option>
															<option value="0">No Priority Selected</option>
															<option value="1">Low Priority</option>
															<option value="2">Medium Priority</option>
															<option value="3">High Priority</option>
														</select>
													</div>
													<!-- /controls -->
												</div>
												<!-- /control-group -->

												<div class="row-fluid">
													<div class="span7">
														<div class="control-group">
															<label class="control-label">Status</label>
															<div class="controls">
																<?php
																$getstatus = $db->get_all ( "status" );
																?>
																<select name="client[sec_status]" class="span12">
																	<option value="" selected="selected"
																		disabled="disabled">Please Select</option>
																<?php
																foreach ( $getstatus as $row ) {
																	?>	
																	<option value="<?php echo $row['name'];?>"><?php echo $row['name'];?></option>
																<?php }?>	
																</select>
															</div>
															<!-- /controls -->
														</div>
													</div>
													<!-- /control-group -->
													<div class="span2">
															<?php
															$usertype = $db->get_col ( "users", array ("email" => $uemail ), 'type' );
															if ($usertype [0] == '0') {
																?>
																	<p data-toggle="modal" href="#example"
															class="btn btn-small btn-primary" id='edit'>Add/Edit</p>
														<input type="checkbox" name="xfdbndsz">
															<?php }?>
														</div>

												</div>


												<div class="control-group">
													<div class="controls">
														<span class="span12"> <input type="hidden" name="check"
															value="client">
															<button type="submit" name="submit"
																class="btn btn-small btn-primary">Save</button>
														</span>
													</div>
													<!-- controls -->
												</div>
												<!-- control group -->

											</form>
										</div>

									</div>



								</div>
								<!--row fluid--->
							</div>
							<!--/widget-main-->
						</div>
						<!--/widget-body-->
					</div>
					<!-- widget box -->
				</div>
				<!-- span12 -->
			</div>
			<!-- row fluid -->

			<!--PAGE CONTENT ENDS-->
		</div>
		<!--/.span-->
	</div>
	<!--/.row-fluid-->
</div>
<!--/.page-content-->

</div>
<!--/.main-content-->