Exemple #1
0
        }
        ?>
			</select>
			<input type="hidden" name="getLabels" id="getLabels">
			<input class='btn' type='submit' name='report' value='Get Labels' /><br/>
		</form>
<?php 
        if (isset($_POST['getLabels'])) {
            $page = $_POST['labelpage'];
            $lan = $_POST['labellang'];
            if ($page == '0' || $lan == '0') {
                echo "<br/><br/><div align='center' style='color:red'>Please select page and language</div>";
            } else {
                $labels = $label->getLabels($page, $lan);
                $lan1 = $label->getLanguagesByCode($lan);
                $pagename = $label->getPageByfilename($page);
                $count = count($labels);
                if (empty($labels)) {
                    echo "<br/><br/><div align='center' style='color:red'>Please upload english file of  {$pagename} before translating in {$lan1}</div>";
                } else {
                    if ($labels == -1) {
                        echo "<br/><br/><div align='center' style='color:red'>English labels of {$pagename} file has been increased so upload english file again</div>";
                    } else {
                        echo "<br/>You are translating labels English to {$lan1} of <strong>{$pagename}</strong> page";
                        echo "<br/>Total labels on this page are {$count}<br/>";
                        ?>
					<form  action='' method="POST">
						<table width="100%" class="tablewithoutsorter">
							<tr>
									<th align="center" width="48%" height="20px">English Label</th>
									<th align="center" width="48%" height="20px"><?php