Esempio n. 1
0
//
// You should have received a copy of the GNU General Public License
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
/**
 * My notes 
 * @desc this page will view on author of notes
 * 
 * @package    local_note
 * @copyright  2015 MoodleOfIndia
 * @author     shambhu kumar
 * @license    MoodleOfIndia {@web http://www.moodleofindia.com}
 */
require dirname(dirname(dirname(__FILE__))) . '/config.php';
require_once 'locallib.php';
require_once 'classes/note.php';
require_login(0, false);
$context = context_system::instance();
$PAGE->set_context($context);
$PAGE->set_pagelayout(get_layout());
$PAGE->set_title(get_string('mynotes', 'local_note'));
$PAGE->set_heading(get_string('mynotes', 'local_note'));
$PAGE->set_url($CFG->wwwroot . '/local/note/my_notes.php');
echo $OUTPUT->header();
echo html_writer::start_div('row');
global $DB, $USER, $CFG;
$note = new \moi\note($DB, $USER->id, $CFG);
echo html_writer::start_div('span12');
echo $note->get_all_my_notes();
echo html_writer::end_div();
echo html_writer::end_div();
echo $OUTPUT->footer();