Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 118... Línea 118...
118
        } else {
118
        } else {
119
            echo $OUTPUT->header();
119
            echo $OUTPUT->header();
120
            echo $OUTPUT->heading(format_string($glossary->name), 2);
120
            echo $OUTPUT->heading(format_string($glossary->name), 2);
121
            echo $OUTPUT->heading(format_string(get_string("editcategory", "glossary")), 3);
121
            echo $OUTPUT->heading(format_string(get_string("editcategory", "glossary")), 3);
Línea 122... Línea 122...
122
 
122
 
123
            $name = $category->name;
123
            $name = format_string($category->name, true, ['context' => $context]);
124
            $usedynalink = $category->usedynalink;
124
            $usedynalink = $category->usedynalink;
125
            require "editcategories.html";
125
            require "editcategories.html";
126
            echo $OUTPUT->footer();
126
            echo $OUTPUT->footer();
127
            die;
127
            die;
Línea 160... Línea 160...
160
            echo "<p>";
160
            echo "<p>";
161
            print_string("areyousuredelete","glossary");
161
            print_string("areyousuredelete","glossary");
162
            echo "</p>";
162
            echo "</p>";
163
?>
163
?>
Línea 164... Línea 164...
164
 
164
 
165
                <table border="0" width="100" class="confirmbuttons">
165
                <table border="0" width="100" class="confirmbuttons table-reboot">
166
                    <tr>
166
                    <tr>
167
                        <td align="$rightalignment" style="width:50%">
167
                        <td align="$rightalignment" style="width:50%">
168
                        <form id="form" method="post" action="editcategories.php">
168
                        <form id="form" method="post" action="editcategories.php">
169
                        <div>
169
                        <div>
Línea 233... Línea 233...
233
echo $OUTPUT->heading(format_string($glossary->name), 2);
233
echo $OUTPUT->heading(format_string($glossary->name), 2);
Línea 234... Línea 234...
234
 
234
 
Línea 235... Línea 235...
235
?>
235
?>
236
 
236
 
237
<form method="post" action="editcategories.php">
237
<form method="post" action="editcategories.php">
238
<table width="40%" class="boxaligncenter generalbox" cellpadding="5">
238
<table width="40%" class="boxaligncenter generalbox table-reboot" cellpadding="5">
239
        <tr>
239
        <tr>
240
          <th style="width:90%" align="center">
240
          <th style="width:90%" align="center">
241
          <?php p(get_string("categories","glossary")) ?></th>
241
          <?php p(get_string("categories","glossary")) ?></th>
Línea 248... Línea 248...
248
 
248
 
249
<?php
249
<?php
Línea 250... Línea 250...
250
    $categories = $DB->get_records("glossary_categories", array("glossaryid"=>$glossary->id), "name ASC");
250
    $categories = $DB->get_records("glossary_categories", array("glossaryid"=>$glossary->id), "name ASC");
251
 
251
 
252
    if ( $categories ) {
252
    if ( $categories ) {
253
        echo '<table width="100%">';
253
        echo '<table class="table-reboot" width="100%">';
254
        foreach ($categories as $category) {
254
        foreach ($categories as $category) {
Línea 255... Línea 255...
255
            $num_entries = $DB->count_records("glossary_entries_categories", array("categoryid"=>$category->id));
255
            $num_entries = $DB->count_records("glossary_entries_categories", array("categoryid"=>$category->id));
Línea 284... Línea 284...
284
            <?php
284
            <?php
Línea 285... Línea 285...
285
 
285
 
286
             $options['id'] = $cm->id;
286
             $options['id'] = $cm->id;
Línea 287... Línea 287...
287
             $options['action'] = "add";
287
             $options['action'] = "add";
288
 
288
 
289
             echo "<table class=\"editbuttons\" border=\"0\"><tr><td align=\"$rightalignment\">";
289
             echo "<table class=\"editbuttons table-reboot\" border=\"0\"><tr><td align=\"$rightalignment\">";
290
             echo $OUTPUT->single_button(new moodle_url("editcategories.php", $options), get_string("addcategory", "glossary"));
290
             echo $OUTPUT->single_button(new moodle_url("editcategories.php", $options), get_string("addcategory", "glossary"));
291
             echo "</td><td align=\"$leftalignment\">";
291
             echo "</td><td align=\"$leftalignment\">";
292
             unset($options['action']);
292
             unset($options['action']);