pos-gis/public/assets/js/pages/custom/education/school/students.min.js

1 line
9.5 KiB
JavaScript
Raw Permalink Normal View History

2024-10-07 06:13:42 +00:00
"use strict";var KTAppsEducationSchoolTeacher={init:function(){var t;t=$("#kt_datatable").KTDatatable({data:{type:"remote",source:{read:{url:HOST_URL+"/api/datatables/demos/default.php"}},pageSize:10,serverPaging:!0,serverFiltering:!0,serverSorting:!0},layout:{scroll:!1,footer:!1},sortable:!0,pagination:!0,columns:[{field:"CompanyName",title:"Student",width:250,template:function(t){var i=KTUtil.getRandomInt(1,10);return'<div class="d-flex align-items-center"> <div class="symbol symbol-50 symbol-sm flex-shrink-0"> <div class="symbol-label"> <img class="h-75 align-self-end" src="assets/media/svg/avatars/'+("F"==t.Gender?{1:{file:"002-girl.svg"},2:{file:"003-girl-1.svg"},3:{file:"006-girl-3.svg"},4:{file:"012-girl-5.svg"},5:{file:"013-girl-6.svg"},6:{file:"019-girl-10.svg"},7:{file:"020-girl-11.svg"},8:{file:"030-girl-17.svg"},9:{file:"037-girl-20.svg"},10:{file:"039-girl-21.svg"}}[i].file:{1:{file:"001-boy.svg"},2:{file:"004-boy-1.svg"},3:{file:"011-boy-5.svg"},4:{file:"021-boy-8.svg"},5:{file:"032-boy-13.svg"},6:{file:"035-boy-15.svg"},7:{file:"040-boy-17.svg"},8:{file:"045-boy-20.svg"},9:{file:"049-boy-22.svg"},10:{file:"048-boy-21.svg"}}[i].file)+'" alt="photo"/> </div> </div> <div class="ml-4"> <div class="text-dark-75 font-weight-bolder font-size-lg mb-0">'+t.CompanyAgent+'</div> <a href="#" class="text-muted font-weight-bold text-hover-primary">'+t.CompanyEmail+"</a> </div> </div>"}},{field:"FacultyAgent",title:"Faculty",template:function(t){var i="",a=KTUtil.getRandomInt(1,5);return i+='<a href="#" class="text-dark-50 text-hover-primary font-weight-bold">'+t.CompanyName+{1:{title:", BA"},2:{title:", BSc"},3:{title:", PhD"},4:{title:", MS"},5:{title:", MA"}}[a].title+"</a>"}},{field:"JoinedDate",title:"Joined",type:"date",width:100,format:"MM/DD/YYYY",template:function(t){var i="";return i+='<div class="font-weight-bolder text-primary mb-0">'+t.ShipDate+"</div>"}},{field:"Status",title:"Status",autoHide:!1,width:100,template:function(t){var i=KTUtil.getRandomInt(1,3),a={1:{title:"New",class:" label-light-primary"},2:{title:"Active",class:" label-light-danger"},3:{title:"In-active",class:" label-light-info"}};return'<span class="label label-lg font-weight-bold '+a[i].class+' label-inline">'+a[i].title+"</span>"}},{field:"Actions",title:"Actions",sortable:!1,width:130,overflow:"visible",autoHide:!1,template:function(){return'\t <div class="dropdown dropdown-inline">\t <a href="javascript:;" class="btn btn-sm btn-default btn-text-primary btn-hover-primary btn-icon mr-2" data-toggle="dropdown">\t\t\t\t\t\t\t\t\t<span class="svg-icon svg-icon-md">\t\t\t\t\t\t\t\t\t\t<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1" class="svg-icon">\t\t\t\t\t\t\t\t\t\t\t<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\t\t\t\t\t\t\t\t\t\t\t\t<rect x="0" y="0" width="24" height="24"/>\t\t\t\t\t\t\t\t\t\t\t\t<path d="M7,3 L17,3 C19.209139,3 21,4.790861 21,7 C21,9.209139 19.209139,11 17,11 L7,11 C4.790861,11 3,9.209139 3,7 C3,4.790861 4.790861,3 7,3 Z M7,9 C8.1045695,9 9,8.1045695 9,7 C9,5.8954305 8.1045695,5 7,5 C5.8954305,5 5,5.8954305 5,7 C5,8.1045695 5.8954305,9 7,9 Z" fill="#000000"/>\t\t\t\t\t\t\t\t\t\t\t\t<path d="M7,13 L17,13 C19.209139,13 21,14.790861 21,17 C21,19.209139 19.209139,21 17,21 L7,21 C4.790861,21 3,19.209139 3,17 C3,14.790861 4.790861,13 7,13 Z M17,19 C18.1045695,19 19,18.1045695 19,17 C19,15.8954305 18.1045695,15 17,15 C15.8954305,15 15,15.8954305 15,17 C15,18.1045695 15.8954305,19 17,19 Z" fill="#000000" opacity="0.3"/>\t\t\t\t\t\t\t\t\t\t\t</g>\t\t\t\t\t\t\t\t\t\t</svg>\t\t\t\t\t\t\t\t\t</span>\t </a>\t <div class="dropdo