Notes
Notes - notes.io |
<div class="my-form" id="step1">
<form class="form-horizontal bv-form" id="add-new-message" action="" method="post" novalidate="novalidate">
<button type="submit" class="bv-hidden-submit" style="display: none; width: 0px; height: 0px;"></button>
<button type="submit" class="bv-hidden-submit" style="display: none; width: 0px; height: 0px;"></button>
<div class="form-body">
<div class="form-group">
<label class="col-md-3 col-xs-12 control-label required" for="name">
اسم المنشأة
<span class="required">*</span>
</label>
<div class="col-md-9 col-xs-12">
<input class="form-control" required="required" name="name" id="name" type="text"
data-bv-field="name" placeholder="أدخل اسم المنشأة هنا">
</div>
</div>
<div class="form-group">
<label class="col-md-3 col-xs-12 control-label required" for="name">
الدولة <span class="required">*</span>
</label>
<div class="col-md-9 col-xs-12">
<select required="required" class="form-control" name="country_id" id="country_select"
data-bv-field="country_id">
<?php foreach ($countries as $value): ?>
<?php $value = (object)$value; ?>
<option calling-code="<?php echo $value->calling_code; ?>"
currency-code="<?php echo $value->currency_code; ?>" <?php echo ($value->id == 16) ? "selected" : ""; ?>
value="<?php echo $value->id ?>">
<?php echo $value->country_name_ar ?>
</option>
<?php endforeach ?>
</select>
</div>
</div>
<div class="form-group hidden">
<label class="col-md-3 col-xs-12 control-label" for="subdomain">
subdomain </label>
<div class="col-md-9 col-xs-12">
<div class="input-group">
<span class="input-group-addon"
style="text-align: left;direction:ltr;padding-right: 105px;">
.baseet.io
</span>
<input placeholder="مثال: office1" class="form-control" name="subdomain" id="subdomain">
</div>
</div>
</div>
<div class="form-group">
<label class="col-md-3 col-xs-12 control-label required" for="email">
البريد الالكتروني <span class="required">*</span>
</label>
<div class="col-md-9 col-xs-12">
<input class="form-control" required="required" name="email" id="email" type="email"
data-bv-field="email" placeholder="أدخل البريد الالكتروني هنا">
</div>
</div>
<div class="form-group">
<label class="col-md-3 col-xs-12 control-label required" for="password">
كلمة المرور <span class="required">*</span></label>
<div class="col-md-9 col-xs-12">
<input class="form-control" id="password" required="required" name="password" type="password"
data-bv-field="password" placeholder="أدخل كلمة المرور هنا">
</div>
</div>
<div class="form-group">
<label class="col-md-3 col-xs-12 control-label required" for="mobile">
رقم الجوال
<span class="required">*</span>
</label>
<div class="col-md-9 col-xs-12">
<div class="input-group">
<span class="input-group-addon" id="country_phone" style="direction:rtl;">966+</span>
<input data-bv-numeric="true" placeholder="مثال : 0598841855" class="form-control" min="0"
required="required" maxlength="15" minlength="0" name="mobile" id="mobile"
type="mobile" data-bv-field="mobile">
</div>
</div>
</div>
<div class="form-group">
<label class="col-md-3 col-xs-12 control-label required" for="mobile"></label>
<div class="col-md-9 col-xs-12">
<div class="g-recaptcha" data-sitekey="6LeuWwcUAAAAAOW5_aRpPCDTpBNXz3vSOem_6OyT"></div>
<div class="help-block" style="margin-top: 10px;">
<i class="fa fa-info-circle"></i>
اضغط على
i am not a robot
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-3 col-xs-12">
</div>
<div class="col-md-9 col-xs-12 padding-left-0 padding-top-20">
<button id="signup-submit-button" type="submit" class="btn btn-primary">
تسجيل
</button>
</div>
</div>
</form>
</div>
<div class="hidden" id="show-loading">
<div class="s-title">
يتم الآن انشاء نسخة خاصة بك
</div>
<div class="s-hint">
يرجى الانتظار...
</div>
<i class="fa fa-spinner fa-pulse"></i>
</div>
</div>
<script>
$("#refresh-captcha").on("click", function () {
captchaSource = "https://www.asaas.rent/Captcha/?time=" + Math.random();
$("#captcha").attr("src", captchaSource);
return false;
});
$("#signup-submit-button").on("click", function () {
if (checkRequired()) {
$("#step1").addClass("hidden");
$("#show-loading").removeClass("hidden");
$.post("/ar/signup", $("#add-new-message").serialize(), function (data) {
data = jQuery.parseJSON(data);
if (data.error) {
if (data.error_no === 19) {
showError("email address is already reserved in the system");
} else if (data.error_no === 5) {
showError("there_is_an_error_in_the_verification_code");
} else if (data.error_no === 21) {
showError("the_desired_domain_name_is_reserved");
} else if (data.error_no === 8) {
showError("the_desired_domain_name_is_reserved");
} else {
showError("error#" + data.error_no + "please call the support center and report this error");
}
$("#step1").removeClass("hidden");
$("#show-loading").addClass("hidden");
$("#refresh-captcha").click();
} else {
link = data.link;
window.location = data.link;
}
});
}
return false;
});
var selected = 0;
// $("#country_select").on("change", function () {
// var value = $(this).val();
// var link = "/cities/?country_id=" + value;
// $.get(link, function (response) {
// response = $.parseJSON(response);
// if (response.success != null && response.success) {
// var options = "<option value="0">اختر المدينة</option>";
// $.each(response.data, function (key, value) {
// var selectedAttr = "";
// if (selected > 0 && key == selected) {
// selectedAttr = "selected";
// }
// options += "<option value="" + key + "" " + selectedAttr + ">" + value + "</option>";
// });
// $("#city_select").html(options);
// }
// });
// });
function checkRequired() {
var name = $("#add-new-message").find("input[name='name']").val();
var type = $("#add-new-message").find("input[name='type']").val();
var email = $("#add-new-message").find("input[name='email']").val();
var password = $("#add-new-message").find("input[name='password']").val();
var mobile = $("#add-new-message").find("input[name='mobile']").val();
var city = $("#city_select").val();
if (name === "" || type === "" || email === "" || password === "" || mobile === "" || city == 0) {
showError("please check all the required fields");
return false;
}
return true;
}
$(document).ready(function () {
$("#country_select").on("change", function () {
value = $(this).find("option:selected").attr("currency-code");
callingCode = $(this).find("option:selected").attr("calling-code");
$("#currency_select").find("option").removeAttr("selected");
$("#currency_select").find("option[value='" + value + "']").attr("selected", "selected");
$("#country_phone").html(callingCode + "+");
});
$("#country_select").change();
$('#add-new-message').bootstrapValidator({
message: 'This value is not valid',
submitButtons: 'button[id="signup-submit-button"]',
fields: {
name: {
message: 'The username is not valid',
validators: {
notEmpty: {
message: 'Account name could not be empty'
}
}
},
email: {
validators: {
notEmpty: {
message: 'Email could not be empty'
},
emailAddress: {
message: 'The field should be valid email'
}
}
},
password: {
validators: {
notEmpty: {
message: 'Password could not be empty'
}
}
},
type: {
validators: {
notEmpty: {
message: 'Account name could not be found'
}
}
}
}
});
});
</script>
<script src="https://www.google.com/recaptcha/api.js"></script>
|
Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 12 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team