2016年3月30日 星期三

後台管理系統SB Admin CMS Templates

http://startbootstrap.com/template-overviews/sb-admin-2/

https://visualstudiogallery.msdn.microsoft.com/f460cb77-92fa-426b-96e7-ebc285a317aa

Jquery Learning 1.Get All inputs. 2.Find all(same) ids, 3. ajax send all inputs


var $inputs = $('#formIndex :input');
var formCollection = $(':input');

$inputs.each(function (index) {
var values = $("input[id="+$(this).attr('id')+"]").map(function () { return $(this).val(); }).get();
if (values.length > 0 && values[0] == values[3])
       {
           alert('顯示順序與EDM順序相同請調整');
           isSubmit = false;
           return false;
       }
       //console.log(values);
       //ids[$(this).attr('name')] = $(this).attr('id');
   });

$.ajax({
type: "POST",
url: "<%= Url.Action("Save") %>",
cache: false,
data: inputs, //formCollection,
success: function(formIndex) {
if (formIndex == "Success"){
alert("儲存成功!!");
window.location.reload();
   //$("#formIndex").submit();
}
else{
alert("儲存失敗!!");
$("#ErrMsg").html(formIndex);
}
}
});

線上客製CSS Table Generator

http://www.csstablegenerator.com/