				<div class="row">
                    <div class="col-lg-12">
                        <h1 class="page-header">Create New Link</h1>
                    </div>
                    <!-- /.col-lg-12 -->
                </div>

                 <div class="row">
                 	<div class="col-lg-12">
                 		<div class="panel panel-default">
                 			<div class="panel-heading">
	                            Create new eWASAP link
	                        </div>
	                        <div class="panel-body">
	                        	<div class="row">
	                        		<form role="form" method="post">
	                        			<div class="col-lg-12">
	                        				<div class="form-group">
	                                            <label class="col-md-2">Link</label>
	                                            <div class="col-lg-6 col-md-4">
	                                            	<table width="100%" border="0">
														<tbody><tr>
															<td width="20">http://&nbsp;</td>
															<td><input type="text" class="form-control" name="custom_name" value="<?php echo isset($custom_name) ? $custom_name : '';?>" required="" maxlength="15"></td>
															<td width="3"></td>
															<td><select class="form-control" name="domain">

					                                                <option value="soccerking128" <?php echo isset($domain) && $domain === 'soccerking128' ? 'selected="selected"' : ''?>>soccerking128.com</option>
					                                                <option value="iwasap" <?php echo isset($domain) && $domain === 'iwasap' ? 'selected="selected"' : ''?>>iwasap.com</option>
					                                                <option value="ewasap" <?php echo isset($domain) && $domain === 'ewasap' ? 'selected="selected"' : ''?>>ewasap.com</option>
					                                            </select>
					                                        </td>
														</tr>
													</tbody></table>
		                                            <p class="help-block">Contoh : <b>tudung</b><br>Masukkan subdomain pilihan anda.<br>Link anda nanti akan jadi: http://tudung.soccerking128.com<br>Rapatkan jika lebih 1 perkataan.<br>Jangan masukkan apa-apa simbol.<br><i>*Tidak boleh 'delete'.</i><br><i style="color: red;">*Kami akan batalkan subdomain yang mempunyai trademark jika tiada kebenaran dari pemiliknya. Contoh: KFC, Shell, iPhone...</i></p>
	                                            </div>
	                                        </div>
	                        			</div>
	                        			<div class="col-lg-12">
	                        				 <div class="form-group">
	                                            <label class="col-md-2">Remark</label>
	                                            <div class="col-lg-6 col-md-4">
	                                            	<input type="text" class="form-control" name="remark" value="<?php echo isset($remark) ? $remark : '';?>" required="">
		                                            <p class="help-block">Contoh: <b>210 WhatsApp Link</b><br>Masukkan remark / agent anda.</p>
	                                            </div>
	                                        </div>
	                                    </div>
	                                    <div class="col-lg-12">
	                        				<div class="form-group">
	                                            <label class="col-md-2">Landing Page</label>
	                                            <div class="col-lg-6 col-md-4">
		                                            <label class="radio-inline">
		                                            	<?php if(isset($landing_page) && $landing_page === 'Y') {?>
		                                            		<input type="radio" name="landing_page" id="landingPageY" value="Y" checked="">YES
		                                            	<?php } else {?>
		                                            		<input type="radio" name="landing_page" id="landingPageY" value="Y">YES
		                                            	<?php }?>
		                                            </label>
		                                            <label class="radio-inline">
		                                            	<?php if((isset($landing_page) && $landing_page === 'N') || !isset($landing_page)) {?>
		                                            		<input type="radio" name="landing_page" id="landingPageN" value="N" checked="">NO
		                                            	<?php } else {?>
		                                            		<input type="radio" name="landing_page" id="landingPageN" value="N">NO
		                                            	<?php }?>
		                                            </label>
		                                            <p>&nbsp;</p>
	                                        	</div>
                                        	</div>
	                                    </div>
	                        			<div class="col-lg-12">
	                        				 <div class="form-group">
	                                            <label class="col-md-2">Phone Number</label>
	                                            <div class="col-lg-6 col-md-4">
	                                            	<input type="text" class="form-control" name="phone_number" value="<?php echo isset($phone_number) ? $phone_number : '';?>" required="" onkeypress="return (event.charCode >= 48 && event.charCode <= 57)||event.charCode <= 8" maxlength="12">
		                                            <p class="help-block">Contoh: <b>60123456789</b><br>Masukkan nombor whatsapp anda.<br>Letakkan kod negara di hadapan.<br><i>*Boleh diubah.</i></p>
	                                            </div>
	                                        </div>
	                                    </div>
	                                    <div class="col-lg-12">
	                        				 <div class="form-group">
	                                            <label class="col-md-2">Text</label>
	                                            <div class="col-lg-6 col-md-4">
	                                            	<textarea data-minlength="5" name="prefilledtext" cols="10" rows="5" class="form-control" required=""><?php echo isset($prefilledtext) ? $prefilledtext : '';?></textarea>
		                                            <p class="help-block">Contoh: <b>Saya nak order tudung.</b><br>Masukkan ayat yang anda nak prospek mesej.<br>Jika tiada, sila kosongkan.<br><i>*Boleh diubah.</i></p>
	                                            </div>
	                                    	</div>
	                                    </div>
	                                    <div class="col-lg-12">
	                                    	<div class="form-group">
	                                    		<label class="col-md-2"></label>
	                                    		<?php if($edit_mode) { ?>
	                                    			<button type="submit" name="addlink" value="addlink" class="btn btn-lg btn-danger">Update Link</button>
	                                    		<?php } else { ?>
	                                    			<button type="submit" name="addlink" value="addlink" class="btn btn-lg btn-danger">Add New Link</button>
	                                    		<?php }?>
	                                    	</div>
	                                	</div>
	                        		</form>
	                        	</div>
	                        </div>
                 		</div>
                 	</div>
                 </div>

                 <?php if(isset($error_insert)) {?>
                 	<script type="text/javascript">
                 		alert("<?php echo $error_insert;?>");
                 	</script>
                 <?php } ?>
                 