if (!empty($data->soundtext)) { ?> <a href="#" class="button" id="playbutton" target="_webapp"><img width="16" height="11" src="<?php echo $CFG['wwwroot'] . '/images/loader-small.gif'; ?> " alt="" /></a> <?php } ?> <div id="home" title="resource" selected="true"> <?php if ($data->image == 1) { ?> <div id="hideclick" style="text-align:center;padding-top:5px;padding-bottom:10px;"><img src="<?php echo printimage('/datas/resource/image/' . $data->id); ?> " alt="" id="faceimg" /></div> <?php } ?> <div style="text-align:center;padding-bottom:10px;" id="text-of-reader"><?php echo $data->text; if (!empty($data->url)) { echo '<br /><br /><a href="' . $data->url . '" target="_webapp">' . $data->urlname . '</a><br /><br />'; } ?> </div> <div style="text-align:center;" id="text-hard-word"></div>
<div id="home" title="Vocabulary" selected="true"> <div style="text-align:center;padding-top:10px;"><strong><?php echo $data->word; ?> </strong></div> <div style="padding-top:10px;padding-bottom:10px;"> <?php $c = 0; while (list($key, $i) = each($a)) { $var = "var" . $i; $cor = "cor" . $i; if (!empty($data->{$var})) { echo '<div style="'; echo 'padding-left:30px;border: solid 1px #666;height:100px;background-color:#f7f7f7'; echo '" id="item_' . $i . '"><div style="float:left;padding-right:20px;"><img src="' . printimage('/datas/quiz/image/' . $data->id . '_' . $i) . '" alt="" width="100px" height="100px" /></div><div style="float:left;display:none;position: absolute;" id="item_ansfer_' . $i . '"><img src="' . $CFG['wwwroot'] . '/images/'; if ($i == 1) { echo 'correct'; } else { echo 'incorrect'; } echo '.png" alt="" width="100px" height="100px"/></div><div style="padding-top: 40px;">' . $data->{$var} . '</div></div>'; echo '<div style="clear:both;"></div>'; if ($c == 0) { $c = 1; } else { $c = 0; } } } ?>
/images/niftyplayer.swf?file=<?php echo $CFG['wwwroot'] . "/datas/vocab/soundword/" . $data->id . ".mp3"; ?> &as=0" quality=high bgcolor=#FFFFFF width="1" height="1" name="audioword" align="" type="application/x-shockwave-flash" swLiveConnect="true" pluginspage="http://www.macromedia.com/go/getflashplayer"> </embed> </object></div> </div> <div id="nextpage" title="Vocabulary" style="min-height: 320px;"> <div style="text-align:center;padding-top:10px;"><?php if (!empty($data->image)) { ?> <img src="<?php echo printimage('/datas/vocab/image/' . $data->id); ?> " alt="" /><?php } ?> </div> <div style="text-align:center;padding-top:20px;padding-bottom:20px;"><?php echo $data->translate; ?> </div> <div style="text-align:center;padding-bottom:20px;"><?php if (strstr($data->word, "/")) { list($data->word) = explode("/", $data->word); } echo preg_replace("/({$data->word})/i", "<span style=\"color:red;\">\$1</span>", $data->text); ?>
<div id="home" title="Vocabulary" selected="true"> <div style="text-align:center;padding-top:10px;"><strong><?php echo $data->word; ?> </strong></div> <div style="padding-top:10px;padding-bottom:10px;"> <?php $c = 0; while (list($key, $i) = each($a)) { $var = "var" . $i; $cor = "cor" . $i; if (!empty($data->{$var})) { echo '<div style="'; echo 'padding-left:30px;border: solid 1px #666;height:100px;background-color:#f7f7f7'; echo '" id="item_' . $i . '" class="item-box" data-id="' . $i . '"><div style="float:left;padding-right:20px;"><img src="' . printimage('/datas/quiz/image/' . $data->id . '_' . $i) . '" alt="" width="100px" height="100px" /></div>'; echo '<div style="float:left;display:none;position: absolute;" id="item_ansfer_' . $i . '"><img src="' . $CFG['wwwroot'] . '/images/'; if ($i == 1) { echo 'correct'; } else { echo 'incorrect'; } echo '.png" alt="" width="100px" height="100px"/></div>'; echo '<div style="padding-top: 40px;">' . $data->{$var} . '</div></div>'; echo '<div style="clear:both;"></div>'; if ($c == 0) { $c = 1; } else { $c = 0; } }
<?php if (!empty($data->text)) { ?> <div style="margin:0 auto;padding:5px;text-align:center;"><?php echo $data->text; ?> </div> <?php } ?> <?php if (!empty($data->image)) { ?> <div style="margin:0 auto;padding:5px;text-align:center;"><img src="<?php echo printimage('/datas/choice/image/' . $data->id); ?> " alt="" /></div> <?php } ?> <ul id="choiceslist"> <?php $a = array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12); shuffle($a); while (list($key, $i) = each($a)) { $var = "var" . $i; if (!empty($data->{$var})) { echo '<li class="item-li" id="itemid-' . $i . '"><a href="#studentansfers" style="color:#000;text-decoration:none;" '; echo ' ><div style="width:100%;height:100%;min-height:36px;">' . $data->{$var} . '</div></a></li>';
?> <?php if (!empty($data->soundtext)) { ?> <a href="#" class="button" id="playbutton" target="_webapp"><img width="16" height="11" src="<?php echo $CFG['wwwroot'] . '/images/loader-small.gif'; ?> " alt="" /></a> <?php } ?> <div id="home" title="Reading" selected="true"> <div id="hideclick" style="text-align:center;padding-top:5px;padding-bottom:10px;"><img src="<?php echo printimage('/datas/reading/image/' . $data->id); ?> " alt="" id="faceimg" /></div> <div style="text-align:center;padding-bottom:10px;" id="text-of-reader"></div> <div style="text-align:center;padding-bottom:10px;display:none" id="text-of-reader2">View text</div> <div style="text-align:center;" id="text-hard-word"></div> <div style="text-align:center;display:none;" id="shownextbutton"><a class="whiteButton" type="button" href="<?php if (!empty($idnext)) { echo $CFG['wwwroot'] . '/apps/reading/index.php?id=' . $idnext; } else { echo $CFG['wwwroot'] . '/index.php/c/' . $course->id; } ?> " target="_webapp"><?php if (!empty($idnext)) {
<div class="bubble-inner">MP3 1MB max per audio</div> <div class="bubble-right"></div> <?php } ?> </td> </tr> <tr> <th>Image:</th> <td> <input type="file" name="image" class="file_1" /></td> <td> <?php if (!empty($data->image)) { echo '<div style="margin-left:20px;"><a href="' . printimage('/datas/clozeactivity/image/' . $id) . '" target="_blank"><img src="' . printimage('/datas/clozeactivity/image/' . $id) . '?' . time() . '" height="60" /></a></div>'; } else { ?> <div class="bubble-left"></div> <div class="bubble-inner">JPEG, PNG 100Kb max per image (<a href="<?php echo $CFG['wwwroot'] . "/images/image-example.jpg"; ?> " target="_blank">Example</a>)</div> <div class="bubble-right"></div> <?php } ?> </td> </tr>
$data->text = str_replace('[' . $k . ']', $html, $data->text); } ?> <div style="margin:0 auto;padding:5px;text-align:center;"><?php echo $data->text; ?> </div> <?php } ?> <?php if (!empty($data->image)) { ?> <div style="margin:0 auto;padding:5px;text-align:center;"><img src="<?php echo printimage('/datas/clozeactivity/image/' . $data->id); ?> " alt="" /></div> <?php } ?> <?php if (!empty($data->soundtext)) { ?> <div style="width:1px;height:1px;text-indent: -9999px;"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="1" height="1" id="audiotext" align=""> <param name=movie value="<?php echo $CFG['wwwroot']; ?> /images/niftyplayer.swf?file=<?php echo $CFG['wwwroot'] . "/datas/clozeactivity/soundtext/" . $data->id . ".mp3";
} ?> <tr> <th valign="top">Choice <?php echo $i . $s; ?> :</th> <td><input type="text" style="size:200px;" name="varwords[]" class="inp-form" value="<?php if ($data->{$vard}) { echo $data->{$vard}; } ?> "> <br style="margin-bottom:10px;"><span class="example">Example: 偶然に</span></td> <td>Image <input type="file" name="varimage[]" class="file_1" /> <?php if (!empty($data->{$vard})) { echo '<div style="float:right;margin-left:100px;"><a href="' . printimage('/datas/quiz/image/' . $id . '_' . $i) . '" target="_blank"><img src="' . printimage('/datas/quiz/image/' . $id . '_' . $i) . '?' . time() . '" height="60" /></a></div>'; } ?> </td> </tr> <?php } ?> <tr> <th> </th> <td valign="top"> <input type="submit" value="" class="form-submit" /> <input type="reset" value="" class="form-reset" /> </td> <td></td>