123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- <link rel="stylesheet" type="text/css" href="../resources/css/style.css"/>
- <div id="buy-courses-tabs">
- {% if sessions_are_included %}
- <ul class="nav nav-tabs buy-courses-tabs" role="tablist">
- <li id="buy-courses-tab" class="{{ showing_courses ? 'active' : '' }}" role="presentation">
- <a href="course_catalog.php" aria-controls="buy-courses" role="tab">{{ 'Courses'|get_lang }}</a>
- </li>
- <li id="buy-sessions-tab" class="{{ showing_sessions ? 'active' : '' }}" role="presentation">
- <a href="session_catalog.php" aria-controls="buy-sessions" role="tab">{{ 'Sessions'|get_lang }}</a>
- </li>
- </ul>
- {% endif %}
- <div class="tab-content">
- <div class="tab-pane active" aria-labelledby="buy-sessions-tab" role="tabpanel">
- <div class="row">
- <div class="col-md-3">
- {{ search_filter_form }}
- </div>
- <div class="col-md-9">
- <div class="row">
- {% if showing_courses %}
- {% for course in courses %}
- <div class="col-md-4 col-sm-6">
- <article class="thumbnail">
- <img alt="{{ course.title }}" class="img-responsive" src="{{ course.course_img ? course.course_img : 'session_default.png'|icon() }}">
- <div class="caption">
- {% set course_description_url = _p.web_ajax ~ 'course_home.ajax.php?' ~ {'code': course.code, 'a': 'show_course_information'}|url_encode() %}
- <h3>
- <a class="ajax" href="{{ course_description_url }}" data-title="{{ course.title }}">{{ course.title }}</a>
- </h3>
- <ul class="list-unstyled">
- {% for teacher in course.teachers %}
- <li><em class="fa fa-user"></em> {{ teacher }}</li>
- {% endfor %}
- </ul>
- <p class="lead text-right">{{ course.currency }} {{ course.price }}</p>
- {% if course.enrolled == "YES" %}
- <div class="alert alert-success">
- <em class="fa fa-check-square-o fa-fw"></em> {{ 'TheUserIsAlreadyRegisteredInTheCourse'|get_plugin_lang('BuyCoursesPlugin') }}
- </div>
- {% elseif course.enrolled == "NO" %}
- <div class="text-center">
- <a class="ajax btn btn-primary" title="" href="{{ course_description_url }}" data-title="{{ course.title }}">
- <em class="fa fa-file-text"></em> {{ 'SeeDescription'|get_plugin_lang('BuyCoursesPlugin') }}
- </a>
- <a class="btn btn-success" title="" href="{{ _p.web_plugin ~ 'buycourses/src/process.php?' ~ {'i': course.id, 't': 1}|url_encode() }}">
- <em class="fa fa-shopping-cart"></em> {{ 'Buy'|get_plugin_lang('BuyCoursesPlugin') }}
- </a>
- </div>
- {% elseif course.enrolled == "TMP" %}
- <div class="alert alert-info">{{ 'WaitingToReceiveThePayment'|get_plugin_lang('BuyCoursesPlugin') }}</div>
- {% endif %}
- </div>
- </article>
- </div>
- {% endfor %}
- {% endif %}
- {% if showing_sessions %}
- {% for session in sessions %}
- <div class="col-md-4 col-sm-6">
- <article class="thumbnail">
- <img alt="{{ session.name }}" class="img-responsive" src="{{ session.image ? session.image : 'session_default.png'|icon() }}">
- <div class="caption">
- <h3>
- <a href="{{ _p.web ~ 'session/' ~ session.id ~ '/about/' }}">{{ session.name }}</a>
- </h3>
- {% if 'show_session_coach'|get_setting == 'true' %}
- <p><em class="fa fa-user fa-fw"></em> {{ session.coach }}</p>
- {% endif %}
- <p><em class="fa fa-calendar fa-fw"></em> {{ session.dates.display }}</p>
- <p class="lead text-right">{{ session.currency }} {{ session.price }}</p>
- <ul class="list-unstyled">
- {% for course in session.courses %}
- <li>
- <em class="fa fa-book fa-fw"></em> {{ course.title }}
- {% if course.coaches|length %}
- <ul>
- {% for coach in course.coaches %}
- <li>{{ coach }}</li>
- {% endfor %}
- </ul>
- {% endif %}
- </li>
- {% endfor %}
- </ul>
- {% if session.enrolled == "YES" %}
- <div class="alert alert-success">
- <em class="fa fa-check-square-o fa-fw"></em> {{ 'TheUserIsAlreadyRegisteredInTheSession'|get_plugin_lang('BuyCoursesPlugin') }}
- </div>
- {% elseif session.enrolled == "NO" %}
- <div class="text-center">
- <a class="btn btn-success" href="{{ _p.web_plugin ~ 'buycourses/src/process.php?' ~ {'i': session.id, 't': 2}|url_encode() }}">
- <em class="fa fa-shopping-cart"></em> {{ 'Buy'|get_plugin_lang('BuyCoursesPlugin') }}
- </a>
- </div>
- {% elseif session.enrolled == "TMP" %}
- <div class="alert alert-info">{{ 'WaitingToReceiveThePayment'|get_plugin_lang('BuyCoursesPlugin') }}</div>
- {% endif %}
- </div>
- </article>
- </div>
- {% endfor %}
- {% endif %}
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
|