Merge branch 'aragonc-C7272' into 1.9.x

1.9.x
Yannick Warnier 11 years ago
commit b9dd768361
  1. 13
      plugin/buycourses/lang/english.php
  2. 13
      plugin/buycourses/lang/french.php
  3. 13
      plugin/buycourses/lang/spanish.php
  4. 117
      plugin/buycourses/resources/css/style.css
  5. BIN
      plugin/buycourses/resources/img/128/accept.png
  6. BIN
      plugin/buycourses/resources/img/128/backlogs.png
  7. BIN
      plugin/buycourses/resources/img/128/buycourses.png
  8. BIN
      plugin/buycourses/resources/img/128/paymentsettings.png
  9. BIN
      plugin/buycourses/resources/img/128/settings.png
  10. BIN
      plugin/buycourses/resources/img/32/accept.png
  11. BIN
      plugin/buycourses/resources/img/32/backlogs.png
  12. BIN
      plugin/buycourses/resources/img/32/buycourses.png
  13. BIN
      plugin/buycourses/resources/img/32/delete.png
  14. BIN
      plugin/buycourses/resources/img/32/new.png
  15. BIN
      plugin/buycourses/resources/img/32/paymentsettings.png
  16. BIN
      plugin/buycourses/resources/img/32/save.png
  17. BIN
      plugin/buycourses/resources/img/32/settings.png
  18. BIN
      plugin/buycourses/resources/img/42/backlogs.png
  19. BIN
      plugin/buycourses/resources/img/42/buycourses.png
  20. BIN
      plugin/buycourses/resources/img/42/paymentsettings.png
  21. BIN
      plugin/buycourses/resources/img/42/settings.png
  22. BIN
      plugin/buycourses/resources/img/64/backlogs.png
  23. BIN
      plugin/buycourses/resources/img/64/buycourses.png
  24. BIN
      plugin/buycourses/resources/img/64/paymentsettings.png
  25. BIN
      plugin/buycourses/resources/img/64/settings.png
  26. 2
      plugin/buycourses/src/buy_course_plugin.class.php
  27. 4
      plugin/buycourses/src/configuration.php
  28. 4
      plugin/buycourses/src/paymentsetup.php
  29. 24
      plugin/buycourses/view/configuration.tpl
  30. 76
      plugin/buycourses/view/index.tpl
  31. 88
      plugin/buycourses/view/list.tpl
  32. 64
      plugin/buycourses/view/paymentsetup.tpl

@ -67,3 +67,16 @@ $strings['TransfersConfig'] = "Bank transfers configuration:";
$strings['PayPalPaymentOKPleaseConfirm'] = "PayPal reports the transaction is ready to be executed. To acknowledge that you are OK to proceed, please click the confirmation button below. Once clicked, you will be registered to the course and the funds will be transferred from your PayPal account to our shop. You can always access your courses through the 'My courses' tab. Thank you for your custom!";
$strings['EnrollToSessionXSuccessful'] = "Your subscription to the session is complete";
$strings['TheUserIsAlreadyRegisteredInTheSession'] = 'You are already registered in the session';
$strings['Instructions'] = 'Instructions';
$strings['InstructionsStepOne'] = 'Create a course or session on the platform.';
$strings['InstructionsStepTwo'] = 'In the <strong>payment settings</strong>, set the currency with which you would like to sell your courses or sessions.';
$strings['InstructionsStepThree'] = 'Configure courses to sell in the <strong>Courses and prices</strong > settings.';
$strings['PluginPresentation'] = 'The BuyCourses Plugin gives you the means to sell your courses or sessions and teach online, through only a few simple steps and settings. What are you waiting for? Start selling courses through Chamilo LMS!';
$strings['TitlePlugin'] = 'Everything you need to teach and sell courses online';
$strings['PluginInstruction'] = 'You can enable or disable the option to pay via PayPal or bank transfer settings in the configuration section of the plugin.';
$strings['ClickHere'] = 'Click here for more details';
$strings['InfoCurrency'] = 'Sets the currency for the payment of your courses.';
$strings['InfoApiCredentials'] = 'To generate your API credentials to integrate Chamilo with your PayPal account, you must follow the following steps';
$strings['InfoApiStepOne'] = 'Go to your PayPal account, <strong>Summary</strong>, then <front>Seller preferences</front> in the <front>Selling Tools</front> menu (if you do not have this menu entry, you might need to get the authorization to sell stuff through PayPal first).';
$strings['InfoApiStepTwo'] = 'In paragraph <strong>API access</strong>, click <strong>Update</strong>';
$strings['InfoApiStepThree'] = 'In Option 2 (Request API credentials to create your own API username and password), click the <strong>View API Signature</strong> link, and copy the credentials shown right into the BuyCourses plugin form';

@ -67,3 +67,16 @@ $strings['TransfersConfig'] = "Configuration des transfers bancaires:";
$strings['PayPalPaymentOKPleaseConfirm'] = "PayPal nous indique que la transaction est prête à être exécutée. Par mesure de sécurité, nous vous demandons de bien vouloir confirmer une dernière fois la transaction en cliquant sur le bouton de confirmation ci-dessous. Une fois cliqué, vous serez immédiatement enregistré au cours, et les fonds correspondants seront soustraits de votre compte PayPal. Vous pouvez accéder à vos cours à tout moment à partir de l'onglet 'Mes cours'. Merci de votre fidélité!";
$strings['EnrollToSessionXSuccessful'] = "Votre inscription à la session %s est terminée.";
$strings['TheUserIsAlreadyRegisteredInTheSession'] = "Vous êtes déjà inscrit à cette session";
$strings['Instructions'] = 'Instructions d\'utilisation';
$strings['InstructionsStepOne'] = 'Créer un cours ou une session de formation sur la plateforme.';
$strings['InstructionsStepTwo'] = 'Dans la section <strong>configuration de paiements</strong>, configurer le type de devise dans lequel vous souhaitez vendre vos cours et sessions';
$strings['InstructionsStepThree'] = 'Configurer les cours à vendre dans la section <strong>Configuration de cours et prix</strong>';
$strings['PluginPresentation'] = 'Le plugin BuyCourses vous donne les moyens nécessaires pour vendre vos cours ou vos sessions existants et d\'enseigner en ligne, en quelques étapes très simples. Qu\'attendez-vous? Commencez à vendre des cours grâce à Chamilo dès maintenant!';
$strings['TitlePlugin'] = 'Tout le nécessaire pour enseigner et vendre des cours en ligne';
$strings['PluginInstruction'] = 'Vous pouvez activer ou désactiver l\'option de paiements via PayPal ou de transferts bancaires dans la section de configuration des plugins.';
$strings['ClickHere'] = 'Cliquez ici pour plus d\'infos';
$strings['InfoCurrency'] = 'Permet configurer le type de devise pour l\'achat des cours.';
$strings['InfoApiCredentials'] = 'Pour générer vos données API pour intégrer votre compte PayPal à Chamilo, il vous faudra suivre les étapes suivantes';
$strings['InfoApiStepOne'] = 'Aller dans l\'option <strong>profil</strong> de PayPal, et ensuite dans <strong>Outils de vente</strong>';
$strings['InfoApiStepTwo'] = 'Dans la section <strong>API d\'accès</strong>, cloquer sur l\'option <strong>Mettre à jour</strong>';
$strings['InfoApiStepThree'] = 'Dans l\'option 2 de Configuration des données et permissions API, cliquer sur <strong>Voir signature API</strong>. Copier ces donées dans le formulaire de configuration de ce plugin';

@ -67,3 +67,16 @@ $strings['TransfersConfig'] = "Configuraci&oacute;n de transferencias:";
$strings['PayPalPaymentOKPleaseConfirm'] = "PayPal nos indicó que todo estaba listo para ejecutar el pago. Por seguridad, le pedimos confirme una última vez su pedido dando clic en el botón de confirmación a bajo. Una vez le haya dado clic, será registrado al curso y el monto correspondiente será retirado de su cuenta PayPal. Siempre puede acceder a sus cursos a partir de la pestaña 'Mis cursos'. Gracias por su compra!";
$strings['EnrollToSessionXSuccessful'] = "Su inscripción en la sesión %s se ha completado.";
$strings['TheUserIsAlreadyRegisteredInTheSession'] = 'El usuario ya está registrado en la sesión.';
$strings['Instructions'] = 'Instrucciones de uso';
$strings['InstructionsStepOne'] = 'Crea un curso o una sesión de formación en la plataforma.';
$strings['InstructionsStepTwo'] = 'En la sección <strong>configuración de pagos</strong>, configure el tipo de moneda con el que venderá sus cursos o sesiones.';
$strings['InstructionsStepThree'] = 'Configure los cursos a vender en la sección <strong>Configuración de cursos y precios</strong>';
$strings['PluginPresentation'] = 'El Plugin BuyCourses le da los recursos para vender sus cursos o sus sesiones ya creados y enseñar en línea, todo en unos simples pasos y configuraciones. ¿Qué espera? Empiece a vender cursos a través de Chamilo ahora!';
$strings['TitlePlugin'] = 'Todo lo que necesita para enseñar y vender cursos en línea';
$strings['PluginInstruction'] = 'Puede activar o desactivar la opción de pagos vía PayPal o configuración de transferencias bancarias, en la sección del configuración del plugin.';
$strings['ClickHere'] = 'Clic Aquí';
$strings['InfoCurrency'] = 'Permite configurar el tipo de moneda (de pago) para sus cursos.';
$strings['InfoApiCredentials'] = 'Para generar tu credenciales API para integrar su cuenta PayPal con Chamilo LMS, deberá seguir los siguientes pasos';
$strings['InfoApiStepOne'] = 'Ir a la opción de <strong>Perfil de PayPal</strong>, luego en <strong>Mis herramientas de venta</strong>';
$strings['InfoApiStepTwo'] = 'En el apartado <strong>Acceso API</strong>, dar clic en la opción <strong>Actualizar</strong>';
$strings['InfoApiStepThree'] = 'En la opción 2, de Configuración de credenciales y permisos de API, dar clic en <strong>Ver firma de API</strong>. Copiar los datos de las credenciales en el formulario de configuración de este plugin';

@ -0,0 +1,117 @@
.thumbnail .caption{
text-align: center;
}
.cleared {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
line-height: 0;
}
table .bg-color{
background-color: #E5EDF9;
color: #333;
}
table td.ta-center, table th.ta-center {
text-align: center;
}
#courses_table td, #transfer_table td, #order_table td {
vertical-align: middle;
}
#courses_table td input.price, #transfer_table td input, #currency_type {
margin: 0;
}
#courses_table td.btop {
border-top: 1px solid #C5DEEB;
border-bottom: 1px solid #C5DEEB;
}
#courses_table tr.fmod {
border: 1px solid #C5DEEB;
background: #C5DEEB;
}
.sprice {
color: #4D984E;
font-size: 18px;
font-weight: bold;
margin: 15px 0;
}
.dinline {
display: inline;
}
.fright {
float: right;
}
.cursor {
cursor: pointer;
}
.ta-center {
text-align: center;
}
textarea#message {
width: 50%;
}
.send_result {
font-weight: bold;
}
select#lsessions, select#lcourses, select#lexercises, select#status {
margin-bottom: 0px;
}
.column_field_filter {
padding: 6px 10px 1px 1px;
text-align: right;
}
.height5 {
height: 5px;
}
.margin-left-fifty{
margin-left: 50px !important;
}
#course_category_well h4{
padding-left: 0;
}
#course_category_well .form-content{
padding-left: 1em;
padding-right: 1em;
}
#course_category_well .btn{
width: 100%;
line-height: 30px;
font-size: 16px;
}
.icon-course .thumbnail{
border: none;
box-shadow: none;
}
.well-course{
padding-top: 1em;
padding-bottom: 1em;
border-bottom: 1px solid #D3E6F0;
}
.ui-widget-content .well-course a, .ui-widget-content .well-course a:hover{
color: #fff;
}
.label-info, .badge-info {
background-color: #53a0c6;
font-weight: normal;
}
.categories-course-description h3 {
color: #666;
font-weight: bold;
font-family: Arial;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 831 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

@ -5,6 +5,7 @@
* @package chamilo.plugin.buycourses
* @author Jose Angel Ruiz <jaruiz@nosolored.com>
* @author Imanol Losada <imanol.losada@beeznest.com>
* @author Alex Aragón <alex.aragon@beeznest.com>
*/
/**
* Plugin class for the BuyCourses plugin
@ -27,6 +28,7 @@ class BuyCoursesPlugin extends Plugin
'1.0',
'Jose Angel Ruiz - NoSoloRed (original author),
Francis Gonzales and Yannick Warnier - BeezNest (integration),
Alex Aragón - BeezNest (Design icons and css styles),
Imanol Losada - BeezNest (introduction of sessions purchase)',
array(
'include_sessions' => 'boolean',

@ -33,8 +33,8 @@ if ($teacher) {
$visibility[] = getCourseVisibilityIcon('3');
$coursesList = listCourses();
$confirmationImgPath = api_get_path(WEB_PLUGIN_PATH) . 'buycourses/resources/message_confirmation.png';
$saveImgPath = api_get_path(WEB_PLUGIN_PATH) . 'buycourses/resources/save.png';
$confirmationImgPath = api_get_path(WEB_PLUGIN_PATH) . 'buycourses/resources/img/32/accept.png';
$saveImgPath = api_get_path(WEB_PLUGIN_PATH) . 'buycourses/resources/img/32/save.png';
$currencyType = findCurrency();
$tpl->assign('server', $_configuration['root_web']);

@ -28,8 +28,8 @@ if ($teacher) {
$confirmationImg = api_get_path(WEB_PLUGIN_PATH) . 'buycourses/resources/message_confirmation.png';
$saveImg = api_get_path(WEB_PLUGIN_PATH) . 'buycourses/resources/save.png';
$moreImg = api_get_path(WEB_PLUGIN_PATH) . 'buycourses/resources/more.png';
$deleteImg = api_get_path(WEB_PLUGIN_PATH) . 'buycourses/resources/delete.png';
$moreImg = api_get_path(WEB_PLUGIN_PATH) . 'buycourses/resources/img/32/new.png';
$deleteImg = api_get_path(WEB_PLUGIN_PATH) . 'buycourses/resources/img/32/delete.png';
$showImg = api_get_path(WEB_PLUGIN_PATH) . 'buycourses/resources/acces_tool.gif';
$paypalEnable = $plugin->get('paypal_enable');

@ -1,6 +1,6 @@
<script type='text/javascript' src="../js/buycourses.js"></script>
<link rel="stylesheet" type="text/css" href="../resources/plugin.css"/>
<link rel="stylesheet" type="text/css" href="../resources/css/style.css"/>
<script>
$(function() {
@ -22,11 +22,11 @@ $(function() {
<div class="span12">
<table id="courses_table" class="data_table">
<tr class="row_odd">
<th>{{ 'Title'|get_lang }}</th>
<th>{{ 'OfficialCode'|get_lang }}</th>
<th class="ta-center">{{ 'Visible'|get_lang }}</th>
<th class="span2">{{ 'Price'|get_plugin_lang('BuyCoursesPlugin') }}</th>
<th class="span1 ta-center">{{ 'Option'|get_lang }}</th>
<th class="bg-color">{{ 'Title'|get_lang }}</th>
<th class="bg-color">{{ 'OfficialCode'|get_lang }}</th>
<th class="ta-center bg-color">{{ 'Visible'|get_lang }}</th>
<th class="span2 bg-color">{{ 'Price'|get_plugin_lang('BuyCoursesPlugin') }}</th>
<th class="span1 ta-center bg-color">{{ 'Option'|get_lang }}</th>
</tr>
{% set i = 0 %}
@ -64,12 +64,12 @@ $(function() {
<div class="span12">
<table id="courses_table" class="data_table">
<tr class="row_odd">
<th>{{ 'Title'|get_lang }}</th>
<th>{{ 'StartDate'|get_lang }}</th>
<th>{{ 'EndDate'|get_lang }}</th>
<th class="ta-center">{{ 'Visible'|get_lang }}</th>
<th class="span2">{{ 'Price'|get_plugin_lang('BuyCoursesPlugin') }}</th>
<th class="span1 ta-center">{{ 'Option'|get_lang }}</th>
<th class="bg-color">{{ 'Title'|get_lang }}</th>
<th class="bg-color">{{ 'StartDate'|get_lang }}</th>
<th class="bg-color">{{ 'EndDate'|get_lang }}</th>
<th class="bg-color ta-center">{{ 'Visible'|get_lang }}</th>
<th class="bg-color span2">{{ 'Price'|get_plugin_lang('BuyCoursesPlugin') }}</th>
<th class="bg-color span1 ta-center">{{ 'Option'|get_lang }}</th>
</tr>
{% set i = 0 %}

@ -1,19 +1,63 @@
<div class="well sidebar-nav static normal-message">
<h4> {{title}} </h4>
<ul class="nav nav-list">
<li>
<a href="src/list.php"> {{ BuyCourses }} </a>
</li>
<link rel="stylesheet" type="text/css" href="resources/css/style.css"/>
<div class="row">
<div class="span12">
<div class="row">
{% if isAdmin == 'true' %}
<li>
<a href="src/configuration.php"> {{ ConfigurationOfCoursesAndPrices }} </a>
</li>
<li>
<a href="src/paymentsetup.php"> {{ ConfigurationOfPayments }} </a>
</li>
<li>
<a href="src/pending_orders.php"> {{ OrdersPendingOfPayment }} </a>
</li>
{% endif %}
<div class="span12">
<div>
<h2>{{ 'TitlePlugin'|get_plugin_lang('BuyCoursesPlugin') }}</h2>
<p>{{ 'PresentationPlugin'|get_plugin_lang('BuyCoursesPlugin') }}</p>
</div>
<div class="normal-message">
<h3>{{ 'Instructions'|get_plugin_lang('BuyCoursesPlugin') }}</h3>
<ul>
<li>{{ 'InstructionsStep1'|get_plugin_lang('BuyCoursesPlugin') }}</li>
<li>{{ 'InstructionsStep2'|get_plugin_lang('BuyCoursesPlugin') }}</li>
<li>{{ 'InstructionsStep3'|get_plugin_lang('BuyCoursesPlugin') }}</li>
</ul>
</div>
</div>
{% endif %}
<div class="span12">
</div>
</div>
<div class="row">
<div class="span3">
<div class="thumbnail">
<img src="resources/img/128/buycourses.png">
<div class="caption">
<a class="btn" href="src/list.php">{{ BuyCourses }}</a>
</div>
</div>
</div>
{% if isAdmin == 'true' %}
<div class="span3">
<div class="thumbnail">
<img src="resources/img/128/settings.png">
<div class="caption">
<a class="btn" href="src/configuration.php">{{ ConfigurationOfCoursesAndPrices }}</a>
</div>
</div>
</div>
<div class="span3">
<div class="thumbnail">
<img src="resources/img/128/paymentsettings.png">
<div class="caption">
<a class="btn" href="src/paymentsetup.php">{{ ConfigurationOfPayments }} </a>
</div>
</div>
</div>
<div class="span3">
<div class="thumbnail">
<img src="resources/img/128/backlogs.png">
<div class="caption">
<a class="btn" href="src/pending_orders.php"> {{ OrdersPendingOfPayment }} </a>
</div>
</div>
</div>
{% endif %}
</div>
</div>
</div>

@ -1,6 +1,6 @@
<script type='text/javascript' src="../js/buycourses.js"></script>
<link rel="stylesheet" type="text/css" href="../resources/plugin.css"/>
<link rel="stylesheet" type="text/css" href="../resources/css/style.css"/>
<script>
$(function() {
@ -18,33 +18,28 @@ $(function() {
<div class="ui-tabs ui-widget ui-widget-content ui-corner-all" id="tabs"> <ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all"> <li class="ui-state-default ui-corner-top ui-tabs-selected ui-state-active"> <a href="#tabs-1">{{ 'Courses'|get_lang }}</a></li><li class="ui-state-default ui-corner-top"> <a href="#tabs-2">{{ 'Sessions'|get_lang }}</a></li></ul>
{% endif %}
<div id="tabs-1" class="row">
<div id="tabs-1">
<div class="row">
<div class="span3">
<div id="course_category_well" class="well">
<ul class="nav nav-list">
<li class="nav-header"><h4>{{ 'SearchFilter'|get_plugin_lang('BuyCoursesPlugin') }}:</h4></li>
<li class="nav-header">{{ 'CourseName'|get_lang }}:</li>
<li><input type="text" id="course_name" style="width:95%"/></li>
<li class="nav-header">{{ 'MinimumPrice'|get_plugin_lang('BuyCoursesPlugin') }}:
<div class="form-content">
<h4>{{ 'SearchFilter'|get_plugin_lang('BuyCoursesPlugin') }}:</h4>
<label class="control-label">{{ 'CourseName'|get_lang }}:</label>
<input type="text" id="course_name" />
<label class="control-label">{{ 'MinimumPrice'|get_plugin_lang('BuyCoursesPlugin') }}:</label>
<input type="text" id="price_min" class="span1"/>
</li>
<li class="nav-header">{{ 'MaximumPrice'|get_plugin_lang('BuyCoursesPlugin') }}:
<label class="control-label">{{ 'MaximumPrice'|get_plugin_lang('BuyCoursesPlugin') }}:</label>
<input type="text" id="price_max" class="span1"/>
</li>
<li class="nav-header">{{ 'Categories'|get_lang }}:</li>
<li>
{% for category in categories %}
<label class="control-label">{{ 'Categories'|get_lang }}:</label>
<select id="courses_category">
<option value="" selected="selected"></option>
{% for category in categories %}
<option value="{{ category.code }}">{{ category.name }}</option>
{% endfor %}
</select>
</li>
<br />
<li class="ta-center">
{% endfor %}
<br>
<input type="button" class="btn btn-primary" value="{{ 'Search'|get_lang }}" id="confirm_filter" />
</li>
</ul>
</div>
</div>
</div>
<div class="span8" id="course_results">
@ -54,16 +49,16 @@ $(function() {
</div>
{% endif %}
{% for course in courses %}
<div class="well_border span8">
<div class="row">
<div class="span">
<div class="span8">
<div class="row well-course">
<div class="span1 icon-course">
<div class="thumbnail">
<a class="ajax" rel="gb_page_center[778]" title="" href="{{ server }}plugin/buycourses/src/ajax.php?code={{ course.code }}">
<img alt="" src="{{ server }}{{ course.course_img }}">
</a>
</div>
</div>
<div class="span4">
<div class="span3">
<div class="categories-course-description">
<h3>{{ course.title }}</h3>
<h5>{{ 'Teacher'|get_lang }}: {{ course.teacher }}</h5>
@ -75,12 +70,12 @@ $(function() {
<span class="label label-warning">{{ 'WaitingToReceiveThePayment'|get_plugin_lang('BuyCoursesPlugin') }}</span>
{% endif %}
</div>
<div class="span right">
<div class="span3 right">
<div class="sprice right">
{{ course.price }} {{ currency }}
</div>
<div class="cleared"></div>
<div class="btn-toolbar right">
<div class="btn-group right">
<a class="ajax btn btn-primary" title="" href="{{ server }}plugin/buycourses/src/ajax.php?code={{ course.code }}">
{{ 'Description'|get_lang }}
</a>
@ -96,34 +91,29 @@ $(function() {
{% endfor %}
</div>
</div>
</div>
{% if sessionsAreIncluded == "YES" %}
<div id="tabs-2" class="row">
<div class="span3">
<div id="course_category_well" class="well">
<ul class="nav nav-list">
<li class="nav-header"><h4>{{ 'SearchFilter'|get_plugin_lang('BuyCoursesPlugin') }}:</h4></li>
<li class="nav-header">{{ 'SessionName'|get_lang }}:</li>
<li><input type="text" id="session_name" style="width:95%"/></li>
<li class="nav-header">{{ 'MinimumPrice'|get_plugin_lang('BuyCoursesPlugin') }}:
<input type="text" id="session_price_min" class="span1"/>
</li>
<li class="nav-header">{{ 'MaximumPrice'|get_plugin_lang('BuyCoursesPlugin') }}:
<input type="text" id="session_price_max" class="span1"/>
</li>
<li class="nav-header">{{ 'Categories'|get_lang }}:</li>
<li>
<select id="sessions_category">
<option value="" selected="selected"></option>
<div class="form-content">
<h4>{{ 'SearchFilter'|get_plugin_lang('BuyCoursesPlugin') }}:</h4>
<label class="control-label">{{ 'CourseName'|get_lang }}:</label>
<input type="text" id="course_name" />
<label class="control-label">{{ 'MinimumPrice'|get_plugin_lang('BuyCoursesPlugin') }}:</label>
<input type="text" id="price_min" class="span1"/>
<label class="control-label">{{ 'MaximumPrice'|get_plugin_lang('BuyCoursesPlugin') }}:</label>
<input type="text" id="price_max" class="span1"/>
{% for category in categories %}
<label class="control-label">{{ 'Categories'|get_lang }}:</label>
<select id="courses_category">
<option value="" selected="selected"></option>
<option value="{{ category.code }}">{{ category.name }}</option>
{% endfor %}
</select>
</li>
<br />
<li class="ta-center">
<input type="button" class="btn btn-primary" value="{{ 'Search'|get_lang }}" id="confirm_session_filter" />
</li>
</ul>
{% endfor %}
<br>
<input type="button" class="btn btn-primary" value="{{ 'Search'|get_lang }}" id="confirm_filter" />
</div>
</div>
</div>
<div class="span8" id="session_results">
@ -133,7 +123,7 @@ $(function() {
</div>
{% endif %}
{% for session in sessions %}
<div class="well_border span8">
<div class="span8 well-course">
<div class="row">
<div class="span4 ">
<div class="categories-course-description">
@ -152,7 +142,7 @@ $(function() {
{{ session.price }} {{ currency }}
</div>
<div class="cleared"></div>
<div class="btn-toolbar right">
<div class="btn-group right">
{% if session.enrolled == "NO" %}
<a class="btn btn-success" title="" href="{{ server }}plugin/buycourses/src/process.php?scode={{ session.session_id }}">
{{ 'Buy'|get_plugin_lang('BuyCoursesPlugin') }}
@ -184,7 +174,7 @@ $(function() {
</div>
<div class="span right">
<div class="cleared"></div>
<div class="btn-toolbar right">
<div class="btn-group right">
<a class="ajax btn btn-primary" title="" href="{{ server }}plugin/buycourses/src/ajax.php?code={{ course.code }}">
{{ 'Description'|get_lang }}
</a>

@ -1,10 +1,21 @@
<script type='text/javascript' src="../js/buycourses.js"></script>
<link rel="stylesheet" type="text/css" href="../resources/plugin.css"/>
<link rel="stylesheet" type="text/css" href="../resources/css/style.css"/>
<div class="row">
<div class="span12">
<h3>{{ 'CurrencyType'|get_plugin_lang('BuyCoursesPlugin') }}:</h3>
<p class="normal-message">{{ 'PluginInstruction'|get_plugin_lang('BuyCoursesPlugin') }}<a href="{{ server }}main/admin/configure_plugin.php?name=buycourses">{{ 'ClickHere'|get_plugin_lang('BuyCoursesPlugin') }}</a></p>
</div>
</div>
<div class="row">
<div class="span6">
<div class="info">
<h3>{{ 'CurrencyType'|get_plugin_lang('BuyCoursesPlugin') }}</h3>
<p>{{ 'InfoCurrency'|get_plugin_lang('BuyCoursesPlugin') }}</p>
</div>
<div class="input-content">
<select id="currency_type">
<option value="" selected="selected">{{ 'SelectACurrency'|get_plugin_lang('BuyCoursesPlugin') }}</option>
{% for currency in currencies %}
@ -17,31 +28,54 @@
{% endfor %}
</select>
<input type="button" id="save_currency" class="btn btn-primary" value="{{ 'Save'|get_lang }}" />
</div>
</div>
{% if paypal_enable == "true" %}
<hr />
<div class="span6">
<div class="info">
<h3>{{ 'PayPalConfig'|get_plugin_lang('BuyCoursesPlugin') }}</h3>
</div>
<div class="input-content">
<p>{{ 'InfoApiCredentials'|get_plugin_lang('BuyCoursesPlugin') }}</p>
<ul>
<li>{{ 'InfoApiStepOne'|get_plugin_lang('BuyCoursesPlugin') }}</li>
<li>{{ 'InfoApiStepTwo'|get_plugin_lang('BuyCoursesPlugin') }}</li>
<li>{{ 'InfoApiStepThree'|get_plugin_lang('BuyCoursesPlugin') }}</li>
</ul>
<label class="control-label">API_UserName: </label><input type="text" id="username" value="{{ paypal.username | e}}" />
<label class="control-label">API_Password: </label><input type="text" id="password" value="{{ paypal.password | e }}"/>
<label class="control-label">API_Signature: </label> <input type="text" id="signature" value="{{ paypal.signature | e }}"/>
{% if paypal.sandbox == "YES" %}
{{ 'Sandbox'|get_plugin_lang('BuyCoursesPlugin') }}: <input type="checkbox" id="sandbox" value="YES" checked="checked"/>
<label class="checkbox">
<input type="checkbox" id="sandbox" value="YES" checked="checked"> {{ 'Sandbox'|get_plugin_lang('BuyCoursesPlugin') }}
</label>
{% else %}
{{ 'Sandbox'|get_plugin_lang('BuyCoursesPlugin') }}: <input type="checkbox" id="sandbox" value="YES" />
<label class="checkbox">
<input type="checkbox" id="sandbox" value="YES" />{{ 'Sandbox'|get_plugin_lang('BuyCoursesPlugin') }}
</label>
{% endif %}
<br />
API_UserName: <input type="text" id="username" value="{{ paypal.username | e}}" /><br/>
API_Password: <input type="text" id="password" value="{{ paypal.password | e }}"/><br/>
API_Signature: <input type="text" id="signature" value="{{ paypal.signature | e }}"/><br/>
<input type="button" id="save_paypal" class="btn btn-primary" value="{{ 'Save'|get_lang }}"/>
</div>
</div>
{% endif %}
</div>
<div class="row">
<div class="span12">
{% if transfer_enable == "true" %}
<hr />
<h3>{{ 'TransfersConfig'|get_plugin_lang('BuyCoursesPlugin') }}</h3>
<table id="transfer_table" class="data_table">
<tr class="row_odd">
<th>{{ 'Name'|get_lang }}</th>
<th>{{ 'BankAccount'|get_plugin_lang('BuyCoursesPlugin') }}</th>
<th>{{ 'SWIFT'|get_lang }}</th>
<th class="span1 ta-center">{{ 'Option'|get_lang }}</th>
<th class="bg-color">{{ 'Name'|get_lang }}</th>
<th class="bg-color">{{ 'BankAccount'|get_plugin_lang('BuyCoursesPlugin') }}</th>
<th class="bg-color">{{ 'SWIFT'|get_lang }}</th>
<th class="span1 ta-center bg-color">{{ 'Option'|get_lang }}</th>
</tr>
{% set i = 0 %}

Loading…
Cancel
Save