createPageBlob($blobRestProxy); waitForEnterKey(); // Show active ranges (there won't be any for a newly created blob). showActiveRanges($blobRestProxy); waitForEnterKey(); // Write to the blob, using the third page. The page index is zero-based. writeContent($blobRestProxy, 2, $createBlobPagesOptions); waitForEnterKey(); // Show active ranges. showActiveRanges($blobRestProxy); waitForEnterKey(); // Display the contents of the blob. displayContents($blobRestProxy); waitForEnterKey(); // Write to the blob again, using the first page. writeContent($blobRestProxy, 0, $createBlobPagesOptions); waitForEnterKey(); // Show active ranges. showActiveRanges($blobRestProxy); waitForEnterKey(); // Display the contents of the blob. displayContents($blobRestProxy); waitForEnterKey(); // Starting at the third page, clear one page. clearPages($blobRestProxy, 2, 1, $createBlobPagesOptions); waitForEnterKey(); // Show active ranges. showActiveRanges($blobRestProxy); waitForEnterKey(); // Display the contents of the blob. displayContents($blobRestProxy);
</head> <body> <?php if (isLoggedIn() && $bRegLogin) { ?> <a href="/?logout=true" class="logout">Logout <?php echo $_SESSION['user']; ?> </a><?php } ?> <?php writeAlerts(); ?> <?php writeContent(); ?> <?php writeDebug(); ?> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> <script>window.jQuery || document.write('<script src="/js/jquery-1.6.2.min.js"><\/script>')</script> <script src="/js/common.js"></script> </body> </html>
"<?php echo conditionalSelectedClass("status"); ?> ><?php echo text('Status', 'Status'); ?> </a></li><li><a href="<?php echo linkParameters("license", ""); ?> "<?php echo conditionalSelectedClass("license"); ?> ><?php echo text('License', 'Lizenz'); ?> </a></li><li><a class="external" href="http://sourceforge.net/projects/touchandlearn/"><?php echo text('SF project page', 'SF Projekt-Seite'); ?> </a></li></ul> <div id="content"> <?php echo writeContent(); ?> </div> <div id="footer"> <a class="external" href="http://sourceforge.net"><img src="http://sourceforge.net/sflogo.php?group_id=209276&type=1" width="88" height="31" alt="SF.net Logo" /></a> </div> </div> </body> </html>
function importClusterContent($line, $variations) { $clnid = $line[1]; $clti = $line[2]; $module = getDBCell("cluster_template_items", "FKID", "CLTI_ID=" . $clti); $modname = getDBCell("modules", "MODULE_NAME", "MODULE_ID=" . $module); $table = ''; if ($modname == "Text") { $table = "pgn_text"; } if ($modname == "Label") { $table = "pgn_label"; } if ($table != "") { for ($i = 3; $i < count($variations); $i++) { if ($line[3]) { $clid = getDBCell('cluster_variations', 'CLID', 'CLNID=' . $clnid . ' AND VARIATION_ID=' . $variations[$i], false); } if ($clid != "") { $clcid = getDBCell('cluster_content', 'CLCID', 'CLID=' . $clid . ' AND CLTI_ID=' . $clti); writeContent($clcid, $table, $line[$i]); } } } }