Ejemplo n.º 1
0
<?php

$url = new URL();
$id = $url->getRequestedItem();
$qb = new QuestionBank();
?>
<div class="container">
	<div class="row">
		<form action="<?php 
echo Comman::getController('question');
?>
" method="post"
			ng-submit="add($event)">
			<div class="col-md-6" style="margin-top: 20px;">
				<div class="panel">
					<div class="panel-heading">
						<div class="panel-title">Add question to <?php 
echo $qb->getInfo($id, 'name');
?>
</div>
					</div>
					<div class="panel-body">
	
						<div class="control-group">
							<label for="ques">Question</label> <input ng-model="name"
								class="form-control" type="text" required="required" name="ques"
								id="ques" placeholder="Question" />
						</div>
						<div class="control-group">
							<label for="course">Type</label> <select ng-model="type"
								class="form-control" required="required" name="type" id="type">
Ejemplo n.º 2
0
</section>
<section>
    <div class="container">
        <div class="row">
            <div class="col-sm-12">
                 <div class="masonry-items">
                    <?php 
$file = new File();
$dir = root . DIRECTORY_SEPARATOR . "assets" . DIRECTORY_SEPARATOR . "images" . DIRECTORY_SEPARATOR . "gallery";
$files = $file->getFiles(realpath($dir));
foreach ($files as $file) {
    ?>
                        <div class="masonry-item item">
                            <div class="thumb">
                                <img class="img-responsive" src="<?php 
    echo Comman::getController("dynamicImage");
    ?>
?src=<?php 
    echo Comman::getUrlByDirectoryPath($dir) . DS . $file;
    ?>
&w=370&h=277&zc=0" alt="featured project"  width="476">
                            </div>
                            <div class="overlay text-center">
                                <div class="display-table">
                                    <div class="display-table-cell"><i class="fa fa-link"></i></div>
                                </div>
                            </div>
                            <a class="hover-link" data-lightbox-gallery="gallery" href="<?php 
    echo Comman::getUrlByDirectoryPath($dir) . DS . $file;
    ?>
">View more</a>
Ejemplo n.º 3
0
<?php

echo Comman::loadView('admin-header');
$url = new URL();
?>
<div class="container" style="margin-top: 10px;">
	<div class="row">
		<form action="<?php 
echo Comman::getController('settings');
?>
" method="post">
			<div class="col-md-6">
				<div class="panel">
					<div class="panel-heading">
						<span class="panel-icon"><i class="fa fa-edit"></i></span>
						<span class="panel-title">Edit Contact Info</span>
					</div>
					<div class="panel-body">
						<div class="control-group">
							<label>Phone No.</label>
							<input type="hidden" name="return_path" value="<?php 
echo $url->getRequestedUri();
?>
">
							<input type="text" name="phone" class="form-control" value="<?php 
echo Comman::getConfig('contact', 'phone');
?>
" placeholder="Phone">
							<span class="help_block">Seperate multiple numbers by <kbd>,</kbd> (comma). First no. will appear on header of each page and rest on contect page only.</span>
						</div>
						<div class="control-group">
Ejemplo n.º 4
0
foreach ($files as $f) {
    ?>
			<div class="panel col-md-4 col-sm-6" style="background-color: transparent;">
				<div class="panel-body" style="padding:0px;">
					<img src = "<?php 
    echo Comman::getUrlByDirectoryPath($dir . "/" . $f);
    ?>
" class="img img-responsive" />
				</div>
				<div class="panel-footer">
					<a href="<?php 
    echo Comman::getUrlByDirectoryPath($dir . "/" . $f);
    ?>
" target="_blank" class="btn btn-default">Open</a>
					<a href="<?php 
    echo Comman::getController("gallery-admin");
    ?>
?action=remove&path=<?php 
    echo realpath($dir) . DIRECTORY_SEPARATOR . $f;
    ?>
&return_path=<?php 
    echo $url->getRequestedUri();
    ?>
" class="btn btn-danger delete">Delete</a>
				</div>
			</div>
			<?php 
}
?>
		</div>
	</div>
Ejemplo n.º 5
0
        <!-- Start: Sidebar Header -->
        <header class="sidebar-header">

          <!-- Sidebar Widget - Author -->
          <div class="sidebar-widget author-widget">
            <div class="media">
              <a class="media-left" href="#">
                <img src="<?php 
echo $config->site_address;
?>
admin/assets/img/avatars/3.jpg" class="img-responsive">
              </a>
              <div class="media-body">
                <div class="media-links">
                   <a href="#" class="sidebar-menu-toggle">User Menu -</a> <a href="<?php 
echo Comman::getController("logout");
?>
">Logout</a>
                </div>
                <div class="media-author">Admin</div>
              </div>
            </div>
          </div>

          <!-- Sidebar Widget - Menu (slidedown) -->
          <div class="sidebar-widget menu-widget">
            <div class="row text-center mbn">
              <div class="col-xs-4">
                <a href="dashboard" class="text-primary" data-toggle="tooltip" data-placement="top" title="Dashboard">
                  <span class="glyphicon glyphicon-home"></span>
                </a>
Ejemplo n.º 6
0
    }
    ?>
                    				</tbody>
                    			</table>
				</div>
			</div>
		</div>
	</div>
</div>
<?php 
} else {
    ?>
<div class="container">
	<div class="row">
		<form enctype=multipart/form-data action="<?php 
    echo Comman::getController('sponcer');
    ?>
?action=update&id=<?php 
    echo $id;
    ?>
" method="post">
                    	<div class="col-lg-7 col-md-7">
	                    	<div class="panel text-left">
	                    		<div class="panel-heading">
	                    			<div class="panel-title text-center center-block" style="float: none;">Edit Sponcer a girl</div>
	                    		</div>
	                    		<div class="panel-body">
									<div class="form-group">
										<label for="name">Name</label>
		                    			<input type="text" required name="name" id="name" value="<?php 
    echo $obj->getSponcerInfo($id, 'name');
Ejemplo n.º 7
0
		                    				<label>Event Details</label>
		                    				<textarea placeholder="Event details" name="desc" class="form-control textarea"></textarea>
		                    				<span class="help-block">Event detail must be short as 100-200 words only.</span><br />
		                    				<button type="submit" class="btn btn-danger btn-lg" style="margin-top: 10px;">Save</button>
	                    				
	                    			</div>
	                    		</div>
	                    	</div>
                    	</div>
                    	</form>
                    	<?php 
    } else {
        if ($ne->isNews($id)) {
            ?>
							<form enctype=multipart/form-data action="<?php 
            echo Comman::getController('newsandevent');
            ?>
?action=edit_n&id=<?php 
            echo $id;
            ?>
" method="post">
                    	<div class="col-lg-7 col-md-7">
	                    	<div class="panel text-left">
	                    		<div class="panel-heading">
	                    			<div class="panel-title text-center center-block" style="float: none;">Edit News</div>
	                    		</div>
	                    		<div class="panel-body">
									<div class="form-group">
	                    				
		                    				<label for="name">News Title</label>
		                    				<input type="text" required name="name" id="name" value="<?php 
        </div>
    </div>
</section>
<script src="<?php 
echo assets;
?>
theme/js/custom.js"></script>
<?php 
if ($auth->isAdmin()) {
    ?>
  <input type="hidden" value="<?php 
    echo $pm->getCurrentPageId();
    ?>
" id="page-id">
  <input type="hidden" value="<?php 
    echo Comman::getController('page-manager');
    ?>
" id="controller-url">
  <button class="btn btn-colored btn-orange btn-lg page-editor-save-btn hidden">Save</button>
  <div class="alert alert-danger notice center-block hidden page-editor-save-btn-warning">Something went wrong. Data cannot be saved. Please reload page Or try to click on save button again.</div>
  <script type="text/javascript" src="editor/codemirror-5.11/lib/codemirror.js"></script>
  <script type="text/javascript" src="editor/codemirror-5.11/mode/xml/xml.js"></script>

  <script type="text/javascript" src="editor/js/froala_editor.min.js" ></script>

  <script type="text/javascript" src="editor/js/plugins/align.min.js"></script>
  <script type="text/javascript" src="editor/js/plugins/code_beautifier.min.js"></script>
  <script type="text/javascript" src="editor/js/plugins/code_view.min.js"></script>
  <script type="text/javascript" src="editor/js/plugins/colors.min.js"></script>
  <script type="text/javascript" src="editor/js/plugins/emoticons.min.js"></script>
  <script type="text/javascript" src="editor/js/plugins/font_size.min.js"></script>
Ejemplo n.º 9
0
    }
    ?>
                    				</tbody>
                    			</table>
				</div>
			</div>
		</div>
	</div>
</div>
<?php 
} else {
    ?>
<div class="container">
	<div class="row">
		<form enctype=multipart/form-data action="<?php 
    echo Comman::getController('volunteer');
    ?>
?action=update&id=<?php 
    echo $id;
    ?>
" method="post">
                    	<div class="col-lg-7 col-md-7">
	                    	<div class="panel text-left">
	                    		<div class="panel-heading">
	                    			<div class="panel-title text-center center-block" style="float: none;">Edit Volunteer</div>
	                    		</div>
	                    		<div class="panel-body">
									<div class="form-group">
										<label for="name">Name</label>
		                    			<input type="text" required name="name" id="name" value="<?php 
    echo $obj->getVolunteerInfo($id, 'name');
Ejemplo n.º 10
0
					<tr ng-repeat="exam in exams">
		                <td>{{$index+1}}</td>
		                <td>{{exam.name}}</td>
		                <td>{{exam.start_time}}</td>
		                <td>
		                	<a href="#" class="btn btn-primary" data-toggle="tooltip" title="Add questions"><span class="fa fa-plus"></span></a>
		                	<a href="#" class="btn btn-info" data-toggle="tooltip" title="Edit exam info"><span class="fa fa-edit"></span></a>
		                	<a href="manage-exams" class="btn btn-danger delete" data-toggle="tooltip" title="Delete Exam" ng-click="deleteExam($event, exam.id)"><span class="fa fa-times"></span></a>
		                </td>
	            	</tr>
				</tbody>
			</table>
		</div>
		<div ng-show="create">
			<form action="<?php 
echo Comman::getController('exam');
?>
" method="post" ng-submit="createExam($event)">
				<div class="panel col-md-6" style="margin-top: 20px;">
					<div class="panel-heading">
						<div class="panel-title">Create Exam</div>
					</div>
					<div class="panel-body">
						
							<div class="control-group">
								<label for="name">Name of exam</label>
								<input ng-model="exam_name" class="form-control" type="text" required="required" name="name"  id="name" placeholder="Name of exam" />
							</div>
							<div class="control-group" style="margin-top: 20px;">
								<label for="exam_type">Auto Start</label>
								<input type="checkbox" ng-model="exam_type" class="form-control" id="exam_type" style="display: inline; margin-left: 20px;" />
Ejemplo n.º 11
0
				<tbody>
					<tr ng-repeat="course in courses">
		                <td>{{$index+1}}</td>
		                <td>{{course.course_name}}</td>
		                <td>
		                	<a href="#" class="btn btn-primary" data-toggle="tooltip" title="Add questions"><span class="fa fa-plus"></span></a>
		                	<a href="#" class="btn btn-info" data-toggle="tooltip" title="Edit exam info"><span class="fa fa-edit"></span></a>
		                	<a href="manage-courses" class="btn btn-danger delete" data-toggle="tooltip" title="Delete Course" ng-click="delete($event, course.id)"><span class="fa fa-times"></span></a>
		                </td>
	            	</tr>
				</tbody>
			</table>
		</div>
		<div ng-show="create">
			<form action="<?php 
echo Comman::getController('courses');
?>
" method="post" ng-submit="add($event)">
				<div class="panel col-md-6" style="margin-top: 20px;">
					<div class="panel-heading">
						<div class="panel-title">Create Course</div>
					</div>
					<div class="panel-body">
						
							<div class="control-group">
								<label for="name">Name of course</label>
								<input ng-model="name" class="form-control" type="text" required="required" name="name"  id="name" placeholder="Name of Course" />
							</div>
							<div class="control-group">
								<button type="submit" class="btn btn-primary" style="margin-top: 20px;">Create</button>
							</div>
Ejemplo n.º 12
0
    }
    ?>
                    				</tbody>
                    			</table>
				</div>
			</div>
		</div>
	</div>
</div>
<?php 
} else {
    ?>
<div class="container">
	<div class="row">
		<form enctype=multipart/form-data action="<?php 
    echo Comman::getController('clients');
    ?>
?action=update&id=<?php 
    echo $id;
    ?>
" method="post">
                    	<div class="col-lg-7 col-md-7">
	                    	<div class="panel text-left">
	                    		<div class="panel-heading">
	                    			<div class="panel-title text-center center-block" style="float: none;">Edit Partner</div>
	                    		</div>
	                    		<div class="panel-body">
									<div class="form-group">
										<label for="name">Name</label>
		                    			<input type="text" required name="name" id="name" value="<?php 
    echo $obj->getClientInfo($id, 'name');
Ejemplo n.º 13
0
					<tr ng-repeat="qb in qbs">
		                <td>{{$index+1}}</td>
		                <td>{{qb.name}}</td>
		                <td>{{qb.course_name}}</td>
		                <td>
		                	<a href="add-question/{{qb.id}}" class="btn btn-primary" data-toggle="tooltip" title="Add questions"><span class="fa fa-plus"></span></a>
		                	<a href="#" class="btn btn-info" data-toggle="tooltip" title="Edit exam info"><span class="fa fa-edit"></span></a>
		                	<a href="manage-question" class="btn btn-danger delete" data-toggle="tooltip" title="Delete Question Bank" ng-click="delete($event, qb.id)"><span class="fa fa-times"></span></a>
		                </td>
	            	</tr>
				</tbody>
			</table>
		</div>
		<div ng-show="create">
			<form action="<?php 
echo Comman::getController('question_bank');
?>
" method="post" ng-submit="add($event)">
				<div class="panel col-md-6" style="margin-top: 20px;">
					<div class="panel-heading">
						<div class="panel-title">Create Question Bank</div>
					</div>
					<div class="panel-body">
						
							<div class="control-group">
								<label for="name">Name of exam</label>
								<input ng-model="name" class="form-control" type="text" required="required" name="name"  id="name" placeholder="Name of exam" />
							</div>
							<div class="control-group">
								<label for="course">Course</label>
								<select ng-model="course" class="form-control"  required="required" name="course"  id="course">