Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
<tr>
<td colspan=2 align=center>
<table id='FileNameTable'>
<tr>
<td colspan=3>
<input type=checkbox name='ProductIsProgram'
value='1'
onclick='JavaScript:ProductIsProgramHandler();'
<?php
if ( trim($product["eproduct_filename"]) != "" )
{
?>
checked
<?php
}
?>
>
<?php echo ADMIN_PRODUCT_IS_PROGRAM;?>
</td>
</tr>
<script language='JavaScript'>
function ProductIsProgramHandler()
{
document.MainForm.eproduct_filename.disabled =
!document.MainForm.ProductIsProgram.checked;
document.MainForm.eproduct_available_days.disabled =
!document.MainForm.ProductIsProgram.checked;
document.MainForm.eproduct_download_times.disabled =
!document.MainForm.ProductIsProgram.checked;
}
</script>
<tr>
<td>
<?php echo ADMIN_EPRODUCT_FILENAME;?>
</td>
<td>
<?php echo ADMIN_EPRODUCT_AVAILABLE_DAYS;?>
</td>
<td>
<?php echo ADMIN_EPRODUCT_DOWNLOAD_TIMES;?>
</td>
</tr>
<tr>
<td>
<input type='file' name='eproduct_filename'
value='<?php echo $product["eproduct_filename"];?>' >
<br>
<?php
if ( file_exists("./products_files/".$product["eproduct_filename"]) &&
$product["eproduct_filename"]!=null )
{
?>
(<?php echo $product["eproduct_filename"];?>)
<?php
}
else
{
?>
<?php echo ADMIN_FILE_NOT_UPLOADED;?>
<?php
}
?>
</td>
<td>
<?php
$valueArray[] = 1;
$valueArray[] = 2;
$valueArray[] = 3;
$valueArray[] = 4;
$valueArray[] = 5;
$valueArray[] = 7;
$valueArray[] = 14;
$valueArray[] = 30;
$valueArray[] = 180;
$valueArray[] = 365;
?>
<select name='eproduct_available_days'>
<?php
foreach($valueArray as $value)
{
?>
<option value='<?php echo $value;?>'
<?php
if ( $product["eproduct_available_days"] == $value )
{
?>
selected
<?php
}
?>
> <?php echo $value;?> </option>
<?php
}
?>
</select>
</td>
<td>
<input type=text name='eproduct_download_times'
value='<?php echo $product["eproduct_download_times"];?>' >
</td>
</tr>
</table>
<script language='JavaScript'>
ProductIsProgramHandler();
</script>
</td>
</tr>