2 require("../../../../config.php");
4 $id = optional_param('id', SITEID
, PARAM_INT
);
6 require_course_login($id);
7 @header
('Content-Type: text/html; charset=utf-8');
9 <!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
10 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
13 <meta http
-equiv
="content-type" content
="text/html; charset=utf-8" />
14 <title
>Create anchor
</title
>
15 <script type
="text/javascript" src
="popup.js"></script
>
16 <script type
="text/javascript">
24 "f_anc": "You must enter the URL where this link points to"
26 var txt
= document
.forms
[0].anc
.value
;
28 alert(required
[f_anc
]);
32 // pass data back to the calling window
33 var param
= new Object();
45 <style type
="text/css">
47 body
{ background
: ButtonFace
; font
-family
: Tahoma
, sans
-serif
; }
48 td
, button
, input
{ font
-family
: Tahoma
, verdana
, sans
-serif
; font
-size
: 8pt
; }
49 button
{ width
: 70px
; }
50 .title
{ background
: #ddf; color: #000; font-weight: bold; font-size: 10pt; padding: 3px 10px; margin-bottom: 10px;
51 border
-bottom
: 1px solid black
; letter
-spacing
: 2px
;
53 .note
{ font
-size
: 8pt
; }
58 <div
class="title"><?php
print_string("createanchor","editor");?
></div
>
60 <table border
="0" cellpadding
="2" cellspacing
="0">
62 <td
><?php
print_string("anchorname","editor");?
>: <input id
="f_anc" name
="anc" type
="text" size
="30" /></td
>
67 <button onclick
="return onOK();" type
="button"><?php
print_string("ok","editor");?
></button
> 
;<button onclick
="return onCancel();" type
="button"><?php
print_string("cancel","editor");?
></button
> 
;
68 <button type
="button" onclick
="javascript: void(0); alert('<?php print_string("anchorhelp
","editor
");?>');"><?php
print_string("help");?
></button
></td
>