当前位置: 首页>>代码示例>>PHP>>正文


PHP make_image函数代码示例

本文整理汇总了PHP中make_image函数的典型用法代码示例。如果您正苦于以下问题:PHP make_image函数的具体用法?PHP make_image怎么用?PHP make_image使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了make_image函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: photo_POST

function photo_POST($id)
{
    $teacher = new Teacher($id);
    $src = make_image('photo');
    $teacher->update('photo', $src);
    redirect("teacher/{$id}");
}
开发者ID:TheDenisNovikov,项目名称:teacher,代码行数:7,代码来源:photo.php

示例2: array

            $head = array("<a href=\"#\" onclick=\"toggleSelectAll(this)\">&#x2713;</a>", "Name", "Handle", "Account Purpose", "Status", "&nbsp;");
            $table->addRow($head, null, 'th');
            foreach ($requests as $handle => $data) {
                list($name, $note, $userinfo) = $data;
                // Grab userinfo/request purpose
                if (@unserialize($userinfo)) {
                    $userinfo = @unserialize($userinfo);
                    $account_purpose = $userinfo[0];
                } else {
                    $account_purpose = $userinfo;
                }
                $rejected = preg_match("/^Account rejected:/", $note);
                if ($rejected) {
                    continue;
                }
                $table->addRow(array('<input type="checkbox" value="' . $handle . '" name="uid[]" onclick="return highlightAccountRow(this)"/>', sprintf('<span style="cursor: hand" onclick="return highlightAccountRow(this)">%s</span>', $name), sprintf('<span style="cursor: hand" onclick="return highlightAccountRow(this)">%s</span>', $handle), sprintf('<span style="cursor: hand" onclick="return highlightAccountRow(this)">%s</span>', $account_purpose), sprintf('<span style="cursor: hand" onclick="return highlightAccountRow(this)">%s</span>', $rejected ? "rejected" : "<font color=\"#c00000\"><strong>Outstanding</strong></font>"), sprintf('<span style="cursor: hand" onclick="return highlightAccountRow(this)">%s</span>', "<a onclick=\"event.cancelBubble = true\" href=\"{$self}?acreq={$handle}\">" . make_image("edit.gif") . "</a>")));
            }
        } else {
            print "No account requests.";
        }
        $table->setAllAttributes('style="vertical-align: top;"');
        echo $table->toHTML();
        ?>
		<br />
		<table align="center">
		<tr>
			<td>
				<select name="reason">
					<option value="">Select rejection reason...</option>
					<option value="Account not needed">Account not needed</option>
				</select>
开发者ID:stof,项目名称:pearweb,代码行数:31,代码来源:index.php

示例3: exit

<?php

!defined('IN_PTF') && exit('ILLEGAL EXECUTION');
/**
 * @author  ryan <cumt.xiaochi@gmail.com>
 */
$materials = $config['product_material_map'];
$material = _post('material');
$stone = _post('stone');
$size = _post('size');
$carve_text = _post('carve_text');
$remark = _post('remark');
$images = _post('image_input');
if (empty($images)) {
    $images = array();
}
$images = $images ? $images : array();
if ($by_post) {
    if ($_FILES['image']['name']) {
        $image = make_image($_FILES['image']);
        $images[] = $image;
    } elseif ($action === 'del_img') {
        $images = array_values($images);
    } else {
        $info = compact('material', 'stone', 'size', 'carve_text', 'remark', 'images');
        $customer->customizeOrder($info);
        redirect('order/all');
    }
}
$page['scripts'][] = 'jquery.validate.min';
$view = "{$view}?master";
开发者ID:name3,项目名称:cheng,代码行数:31,代码来源:customize.php

示例4: htmlspecialchars

                 echo "Successfully <b>added</b> karma &quot;" . htmlspecialchars($_POST['level']) . "&quot;<br /><br />";
                 note::add($handle, 'added ' . $_POST['level'] . ' karma', $auth_user->handle);
             }
             break;
     }
 }
 $user_karma = $karma->get($handle);
 if (count($user_karma) == 0) {
     echo 'No karma yet';
 } else {
     $table = new HTML_Table('style="width: 90%"');
     $table->setCaption('Karma levels for ' . htmlspecialchars($handle), 'style="background-color: #CCCCCC;"');
     $table->addRow(array("Level", "Added by", "Added at", "Remove"), null, 'th');
     foreach ($user_karma as $item) {
         $remove = sprintf("karma.php?action=remove&amp;handle=%s&amp;level=%s", htmlspecialchars($handle), htmlspecialchars($item['level']));
         $table->addRow(array(htmlspecialchars($item['level']), htmlspecialchars($item['granted_by']), htmlspecialchars($item['granted_at']), make_link($remove, make_image("delete.gif"), false, 'onclick="javascript:return confirm(\'Do you really want to remove the karma level ' . htmlspecialchars($item['level']) . '?\');"')));
     }
     echo $table->toHTML();
 }
 echo "<br /><br />";
 $table = new HTML_Table('style="width: 100%"');
 $table->setCaption("Grant karma to " . htmlspecialchars($handle), 'style="background-color: #CCCCCC;"');
 $form = new HTML_QuickForm2('karma_grant', 'post', array('action' => 'karma.php?action=grant'));
 $form->removeAttribute('name');
 $form->addElement('text', 'level')->setLabel('Level:&nbsp;');
 $form->addElement('hidden', 'handle')->setValue(htmlspecialchars($handle));
 $form->addElement('submit', 'submit')->setLabel('Submit Changes');
 $csrf_token_value = create_csrf_token($csrf_token_name);
 $form->addElement('hidden', $csrf_token_name)->setValue($csrf_token_value);
 $table->addRow(array((string) $form));
 echo $table->toHTML();
开发者ID:stof,项目名称:pearweb,代码行数:31,代码来源:karma.php

示例5: create_csrf_token

$form->addElement('submit', 'submit')->setLabel('Save Changes');
$csrf_token_value = create_csrf_token($csrf_token_name);
$form->addElement('hidden', $csrf_token_name)->setValue($csrf_token_value);
print $form->render($renderer);
?>

<table class="form-holder" cellspacing="1">
<caption class="form-caption">Manage Releases</caption>

<tr>
 <th class="form-label_top">Version</th>
 <th class="form-label_top">Release Date</th>
 <th class="form-label_top">Actions</th>
</tr>

<?php 
foreach ($row['releases'] as $version => $release) {
    echo "<tr>\n";
    echo '  <td class="form-input">' . htmlspecialchars($version) . "</td>\n";
    echo '  <td class="form-input">';
    echo format_date(strtotime($release['releasedate']));
    echo "</td>\n";
    echo '  <td class="form-input">' . "\n";
    $url = 'package-edit.php?id=' . $_GET['id'] . '&amp;release=' . htmlspecialchars($release['id']) . '&amp;action=release_remove';
    $msg = 'Are you sure that you want to delete the release?';
    echo "<a href=\"javascript:confirmed_goto('{$url}', '{$msg}')\">" . make_image('delete.gif') . "</a>\n";
    echo "</td>\n";
    echo "</tr>\n";
}
echo "</table>\n";
response_footer();
开发者ID:stof,项目名称:pearweb,代码行数:31,代码来源:package-edit.php

示例6: elseif

}
$nfiles = 0;
$dir = null;
$ellipse_frac = 0.5;
for ($i = 1; $i < $argc; $i++) {
    if ($argv[$i] == '--nfiles') {
        $nfiles = $argv[++$i];
    } elseif ($argv[$i] == '--dir') {
        $dir = $argv[++$i];
    } elseif ($argv[$i] == '--ellipse_frac') {
        $ellipse_frac = $argv[++$i];
    } else {
        usage();
    }
}
if (!$nfiles || !$dir) {
    usage();
}
$dir = "../user/{$dir}";
if (!is_dir($dir)) {
    exit("{$dir} is not a directory\n");
}
for ($i = 0; $i < $nfiles; $i++) {
    $path = "{$dir}/{$i}.png";
    $anspath = "{$dir}/{$i}.ans";
    $case = make_test_case($ellipse_frac);
    $f = fopen($anspath, 'w');
    fwrite($f, serialize($case));
    fclose($f);
    imagepng(make_image($case), $path);
}
开发者ID:CalvinZhu,项目名称:boinc,代码行数:31,代码来源:bossa_example_make_files.php

示例7: commonFooter

function commonFooter($padding = true)
{
    global $RIGHT_SIDEBAR_DATA;
    if ($padding) {
        print "<br />";
    }
    ?>
      </td>
     </tr>
    </table>
   </td>
   <?php 
    if (isset($RIGHT_SIDEBAR_DATA)) {
        ?>
   <td bgcolor="#CCCCCC" style="background-image: url(/gifs/checkerboard.gif)"><?php 
        spacer(1, 1);
        ?>
<br /></td>
   <td width="170" bgcolor="#F0F0F0">
    <table width="100%" cellpadding="4" cellspacing="0">
     <tr valign="top">
      <td class="sidebar">
       <?php 
        echo $RIGHT_SIDEBAR_DATA;
        ?>
      </td>
     </tr>
    </table>
   </td>
   <?php 
    }
    ?>
  </tr>
 </table>

 <table border="0" cellspacing="0" cellpadding="0" width="100%">
  <tr bgcolor="#000033"><td><?php 
    spacer(1, 1);
    ?>
<br /></td></tr>
  <tr bgcolor="#006699">
   <td align="right" valign="bottom">
    <?php 
    //print_link('/source.php?url='.$_SERVER['SCRIPT_NAME'], 'show source', false, 'class="menuWhite"');
    //echo delim();
    print_link('/credits.php', 'credits', false, 'class="menuWhite"');
    ?>
&nbsp;<br />
   </td>
  </tr>
  <tr bgcolor="#000033"><td><?php 
    spacer(1, 1);
    ?>
<br /></td></tr>
 </table>

 <table border="0" cellspacing="0" cellpadding="6" width="100%">
  <tr valign="top" bgcolor="#CCCCCC">
   <td>
    <small>
     <?php 
    print_link('http://www.php.net/', make_image('php-logo.gif', 'PHP', 'left'));
    ?>
     &nbsp;<?php 
    print_link('/copyright.php', 'Copyright &copy; 2001-' . date('Y') . ' The PHP Group');
    ?>
<br />
     &nbsp;All rights reserved.<br />
    </small>
   </td>
   <td align="right">
    <small>
     Last updated: <?php 
    echo strftime("%c %Z", getlastmod());
    ?>
<br />
    </small>
    <br />
   </td>
  </tr>
 </table>
</body>
</html>
<?php 
}
开发者ID:marcosptf,项目名称:web-gtk,代码行数:85,代码来源:layout.php

示例8: array

<h3>Syndication</h3>
<p>
 You can grab our news as an <a href="/feed.atom">Atom feed</a>.
</p>';
$MIRROR_IMAGE = '';
// Try to find a sponsor image in case this is an official mirror
if (is_official_mirror()) {
    // Iterate through possible mirror provider logo types in priority order
    $types = array("gif", "jpg", "png");
    while (list(, $ext) = each($types)) {
        // Check if file exists for this type
        if (file_exists("backend/mirror." . $ext)) {
            // Add text to rigth sidebar
            $MIRROR_IMAGE = "<div align=\"center\"><h3>This mirror sponsored by:</h3>\n";
            // Create image HTML code
            $img = make_image('mirror.' . $ext, htmlspecialchars(mirror_provider()), FALSE, FALSE, 'backend', 0);
            // Add size information depending on mirror type
            if (is_primary_site() || is_backup_primary()) {
                $img = resize_image($img, 125, 125);
            } else {
                $img = resize_image($img, 120, 60);
            }
            // End mirror specific part
            $MIRROR_IMAGE .= '<a href="' . mirror_provider_url() . '">' . $img . "</a></div><br /><hr />\n";
            // We have found an image
            break;
        }
    }
}
/* {{{ Generate latest release info */
/* NOTE: You are editing the wrong file, you should be in include/version.inc
开发者ID:romainneutron,项目名称:web-php,代码行数:31,代码来源:index-stable.php

示例9: upload_img_external

/**
 * Function upload_img_external
 * PURPOSE: upload & resize images from external URL
 *
 * $external_url = Image URL
 * $save_as = save image as File Name
 * $img_width = width to resize to
 * $up_loc = upload location for the image. Like '../img/clients'
 * $img_title = Image Title (mainly used for errors)
 * $insert_name_part = Insert Part in File Name (use to create different size images like thunbnail)
 * $fix_height = fix height as well
*/
function upload_img_external($external_url, $save_as, $img_width, $up_loc, $img_title, $insert_name_part = '', $fix_height = '', $error_sess_name = 'CUSA_MSG_GLOBAL')
{
    global $_SESSION;
    $file_pth = $up_loc . $save_as . '.jpg';
    $file = @file_get_contents($external_url);
    $saved = @file_put_contents($file_pth, $file);
    //var_dump($saved, strlen($file)); die('x');
    $new_c_image = '';
    if ($saved == strlen($file)) {
        $t1 = $save_as;
        $tmx = time();
        $tmx = substr($tmx, 0, strlen($tmx) - 2);
        $new_c_image = strtolower($t1) . '_' . $tmx;
        list($g_width, $g_height) = @getimagesize($file_pth);
        if ($g_width > $img_width || $g_width < $img_width - 1) {
            $g_width = $img_width;
        }
        $pres_ratio = true;
        if (!empty($fix_height)) {
            $g_height = $fix_height;
            $pres_ratio = false;
        }
        $ret = false;
        $ret = make_image($file_pth, $up_loc, $g_width, $g_height, '', 'image/jpg', $new_c_image . $insert_name_part, $pres_ratio);
        if ($ret === false) {
            $new_c_image = '';
            $_SESSION[$error_sess_name] = array(false, "ERROR saving {$img_title}!");
        } else {
            $new_c_image .= '.jpg';
        }
    }
    return $new_c_image;
}
开发者ID:centaurustech,项目名称:collaborate-usa,代码行数:45,代码来源:resize_images.php

示例10: elseif

                 $tmpid['ENTRY_UPDATE'] = "<a href=\"" . $sess->url('main.php?area=mod&action=lupdate&idmod=' . $mod['idmod'] . '&sourceid=' . $mod['source_id'] . '&idclient=' . $idclient) . "\"><img src=\"tpl/" . $cfg_cms['skin'] . "/img/but_modul_outofsync.gif\" width=\"16\" height=\"16\" alt=\"" . $cms_lang['mod_local_update'] . "\" title=\"" . $cms_lang['mod_local_update'] . "\" /></a>";
             } elseif ($cfg_rep['repository_show_up2date']) {
                 $tmpid['ENTRY_UPDATE'] = "<a name='norepository'><img src=\"tpl/" . $cfg_cms['skin'] . "/img/but_modul_insync.gif\" width=\"16\" height=\"16\" alt=\"" . $cms_lang['mod_repository_noupdate'] . "\" title=\"" . $cms_lang['mod_repository_noupdate'] . "\" /></a>";
             } else {
                 $tmpid['ENTRY_UPDATE'] = "\n<img src=\"tpl/" . $cfg_cms['skin'] . "/img/space.gif\" width=\"16\" height=\"16\" />";
             }
         }
         //DebugMe! echo "<br>$idmod:".$mod['deletable'].'|'.$perm->have_perm(5, 'mod', $mod['idmod']).'|'.$mod['count_delete'];
         // Modul löschen
         if ($mod['deletable'] == '1' && $perm->have_perm(5, 'mod', $mod['idmod']) && $mod['count_delete'] < 1) {
             $tmpid['ENTRY_DELBUT'] = "<a href=\"" . $sess->url('main.php?area=mod&action=delete&idmod=' . $mod['idmod'] . '&idclient=' . $idclient) . "\" onclick=\"return delete_confirm()\"><img src=\"tpl/" . $cfg_cms['skin'] . "/img/but_deleteside.gif\" width=\"16\" height=\"16\" alt=\"" . $cms_lang['mod_delete'] . "\" title=\"" . $cms_lang['mod_delete'] . "\" /></a>";
         } else {
             $tmpid['ENTRY_DELBUT'] = "\n<img src=\"tpl/" . $cfg_cms['skin'] . "/img/space.gif\" width=\"16\" height=\"16\" />";
         }
         $tmpid['ENTRY_NAME'] = $idclient >= 1 && $mod['verbose'] != '' ? htmlentities($mod['verbose'], ENT_COMPAT, 'UTF-8') : htmlentities($mod['name'], ENT_COMPAT, 'UTF-8');
         $tmpid['ENTRY_ICON'] = make_image('but_modul.gif', '', '16', '16', false, 'class="icon"');
         $tmpid['ENTRY_ANAME'] = "<a name=\"" . (htmlentities('mod' . $mod['idmod'], ENT_COMPAT, 'UTF-8') . "\"></a>");
         $tmpid['ENTRY_DESCRIPTION'] = htmlentities($mod['description'], ENT_COMPAT, 'UTF-8');
         $tmpid['ENTRY_VERSION'] = htmlentities($mod['version'], ENT_COMPAT, 'UTF-8');
         $tmpid['ENTRY_CAT'] = htmlentities($mod['cat'], ENT_COMPAT, 'UTF-8');
         $tpl->setVariable($tmpid);
         unset($tmpid);
         $tpl->parseCurrentBlock();
     }
 } else {
     $tmp['MOD_NOMODULES'] = !$rep->error() ? $cms_lang['mod_nomodules'] : $cms_lang['err_' . $rep->error(1)];
     $tpl->setCurrentBlock('NOENTRY');
     $tpl->setVariable($tmp);
     unset($tmp);
     $tpl->parseCurrentBlock();
 }
开发者ID:rbraband,项目名称:iSefrengo-Dev,代码行数:31,代码来源:inc.mod.php

示例11: set_filedata

function set_filedata($db, $imorexport, $idclient)
{
    global $tmp, $tpl, $action, $idjsfile, $cms_lang, $cfg_cms, $perm, $sess;
    // variablen belegen
    $idjs = $db->f("idjs");
    // get perms for testing
    if (!empty($idclient)) {
        $test_type = 'js_file';
        $test_id = $idjs;
        if (!$perm->have_perm(2, "js_file", $idjs)) {
            return 0;
        }
    } else {
        $test_type = 'area_js';
        $test_id = '0';
    }
    // Hintergrundfarbe wählen
    $tmp['ENTRY_BGCOLOR'] = '#FFFFFF';
    $tmp['ENTRY_BGCOLOROVER'] = '#fff7ce';
    // filename und description
    $tmp['ENTRY_ICON'] = make_image('ressource_browser/icons/rb_typ_js.gif', '', '16', '16', false, 'class="icon"');
    $tmp['ENTRY_NAME'] = htmlentities($db->f('filename'), ENT_COMPAT, 'UTF-8');
    // handle delete css-file
    if ($action == 30 && $idjs == $idjsfile && $perm->have_perm(5, $test_type, $test_id)) {
        $tmp['ENTRY_NAME'] = $tmp['ENTRY_NAME'] . '&nbsp;&nbsp;' . make_image_link3("main.php?area=js&action=deletefile&idjsfile=" . $idjs . "&idupl=" . $db->f('idupl') . "&idclient={$idclient}", 'but_confirm.gif', 'but_cancel_delete.gif', $cms_lang['js_file_delete_confirm'], $cms_lang['js_file_delete_cancel'], 'action', 'deletethis');
    }
    $tmp['ENTRY_DESCRIPTION'] = htmlentities($db->f('description'), ENT_COMPAT, 'UTF-8');
    // buttons vorbesetzen
    $tmp['ENTRY_DOWNLOAD'] = make_image_link2($url = '#', $image = 'space.gif', '', '16', '16', '', '', '', 'action', '', '', '', 'action');
    $tmp['ENTRY_DUPLICATE'] = make_image_link2($url = '#', $image = 'space.gif', '', '16', '16', '', '', '', 'action', '', '', '', 'action');
    $tmp['ENTRY_EDIT'] = make_image_link2($url = '#', $image = 'space.gif', '', '16', '16', '', '', '', 'action', '', '', '', 'action');
    $tmp['ENTRY_DELBUT'] = make_image_link2($url = '#', $image = 'space.gif', '', '16', '16', '', '', '', 'action', '', '', '', 'action');
    $tmp['ENTRY_IMEXPORT'] = make_image_link2($url = '#', $image = 'space.gif', '', '16', '16', '', '', '', 'action', '', '', '', 'action');
    // button: download js-file - wenn nicht im import
    if (!empty($idclient) && $perm->have_perm(8, $test_type, $test_id)) {
        $tmp['ENTRY_DOWNLOAD'] = make_image_link2("main.php?area=js&action=downloadfile&idjsfile=" . $db->f('idupl') . "&idclient={$idclient}", 'but_download.gif', $cms_lang['js_file_download'], '16', '16', '', '', '', 'action', '', '', '', 'action');
    }
    // buttons: edit, copy,
    if (!empty($idjs) && $perm->have_perm(3, $test_type, $test_id) || empty($idclient) && $perm->have_perm(3, $test_type, $test_id)) {
        // button: edit js-file
        $tmp['ENTRY_EDIT'] = make_image_link2("main.php?area=js_edit_file&idjsfile=" . $idjs . "&idclient={$idclient}", 'but_edit.gif', $cms_lang['js_file_edit'], '16', '16', '', '', '', 'action', '', '', '', 'action');
        // button: duplicate js-file -- benötigt auch Neu-Anlegen-Rechte
        if ($perm->have_perm(2, 'area_js')) {
            $tmp['ENTRY_DUPLICATE'] = make_image_link2("main.php?area=js_edit_file&action=10&idjsfile=" . $idjs . "&idclient={$idclient}", 'but_duplicate.gif', $cms_lang['js_file_duplicate'], '16', '16', '', '', '', 'action', '', '', '', 'action');
        }
    }
    // button: delete js-file
    if ($perm->have_perm(5, $test_type, $test_id)) {
        $tmp['ENTRY_DELBUT'] = make_image_link2("main.php?area=js&action=30&idjsfile=" . $idjs . "&idclient={$idclient}", 'but_deleteside.gif', $cms_lang['js_file_delete'], '16', '16', '', '', '', 'action', 'deletethis', '', '', 'action');
    }
    // button: export js-file
    $rights_okay = $imorexport == 'import' ? $perm->have_perm(13, $test_type, $test_id) : $perm->have_perm(14, $test_type, $test_id);
    if ($rights_okay && !empty($idjs)) {
        $upl = $imorexport == 'import' ? '&idupl=' . $db->f('idupl') : '';
        $tmp['ENTRY_IMEXPORT'] = make_image_link2("main.php?area=js&action=" . $imorexport . "&idjsfile=" . $idjs . $upl . "&idclient={$idclient}", $imorexport . '.gif', $cms_lang['js_' . $imorexport], '16', '16', '', '', '', 'action', '', '', '', 'action');
    }
    $tpl->setVariable($tmp);
    $tpl->parseCurrentBlock();
    unset($tmp);
    return 1;
}
开发者ID:rbraband,项目名称:iSefrengo-Dev,代码行数:61,代码来源:inc.js.php

示例12: make_image

         $tpl_side_values['BUTTON_DELETE'] = make_image('space.gif', '', '16', '16');
     }
     // Seite: schützen
     if ($perm->have_perm(24, 'side', $tmp_side['idcatside'], $tmp_side['idcat'])) {
         if ($tmp_side['offline']) {
             $lock_val = 0;
             $lock_icon = 'but_lock.gif';
             $lock_text = $cms_lang['con_unlock_side'];
         } else {
             $lock_val = 1;
             $lock_icon = 'but_unlock.gif';
             $lock_text = $cms_lang['con_lock_side'];
         }
         $tpl_side_values['BUTTON_LOCK'] = make_image_link('main.php?action=side_lock&idcatside=' . $tmp_side['idcatside'] . '&idside=' . $tmp_side['idside'] . '&lock=' . $lock_val, $lock_icon, $lock_text, '16', '16', '', '', '#sideanchor');
     } else {
         $tpl_side_values['BUTTON_LOCK'] = make_image('space.gif', '', '16', '16');
     }
     // Seite: Vorschau
     $tpl_side_values['BUTTON_PREVIEW'] = make_image_link($tmp_side['link'], 'but_preview.gif', $cms_lang['con_preview'], '16', '16', '_blank');
     $tpl_side_values['SIDE_ACTIONS'] = '';
     unset($side_actions);
 }
 // Tabellenfarbwerte
 if ($con_tree[$a]['offline'] || $tmp_side['offline']) {
     $tpl_side_values['TABLE_COLOR'] = '#FFEEDF';
     $tpl_side_values['TABLE_OVERCOLOR'] = '#FFF5CE';
 } else {
     $tpl_side_values['TABLE_COLOR'] = '#FFFFFF';
     $tpl_side_values['TABLE_OVERCOLOR'] = '#FFF5CE';
 }
 // Seitentemplate parsen
开发者ID:rbraband,项目名称:iSefrengo-Dev,代码行数:31,代码来源:inc.con.php

示例13: array

        } else {
            $material = array();
        }
        $material = json_encode($material);
        if ($by_post) {
            $img_names = array('image1', 'image2', 'image3');
            foreach ($img_names as $img_name) {
                if ($_FILES[$img_name]['name']) {
                    $uploading = 1;
                    // upload
                    ${$img_name} = make_image($_FILES[$img_name]);
                    // orgin
                    // big
                    ${$img_name . '_400'} = make_image($_FILES[$img_name], array('crop' => 1, 'resize' => 1, 'width' => 400, 'height' => 400));
                    // thumb
                    ${$img_name . '_thumb'} = make_image($_FILES[$img_name], array('crop' => 1, 'resize' => 1, 'width' => 80, 'height' => 80));
                }
            }
            if (!isset($uploading)) {
                $admin->postProduct(compact('name', 'no', 'type', 'material', 'weight', 'rabbet_start', 'rabbet_end', 'small_stone', 'st_weight', 'remark', 'image1', 'image1_400', 'image1_thumb', 'image2', 'image2_400', 'image2_thumb', 'image3', 'image3_400', 'image3_thumb'));
                redirect('product');
            }
        }
        break;
    case 'batch':
        break;
    default:
        throw new Exception("unkown: {$target}");
        break;
}
$matter = $view . ($target ? '.' . $target : '');
开发者ID:name3,项目名称:cheng,代码行数:31,代码来源:product.php

示例14: social_netvibes

/**
 * function that links to netvibes
 * @param string $jurl url to link to
 * @param array  $jurlParams parms to give to the links
 * @param string $title title of the link
 */
function social_netvibes($jurl, $jurlParams, $title)
{
    $params = array('width' => 16, 'height' => 16, 'alt' => 'netvibes');
    $netvibesUrl = 'http://www.netvibes.com/share?';
    $netvibesUrl .= 'url=http://' . $_SERVER['SERVER_NAME'] . urlencode(jUrl::get($jurl, $jurlParams));
    $netvibesUrl .= '&amp;title=' . urlencode($title);
    echo '<a href="' . $netvibesUrl . '" title="netvibes" >' . make_image('themes/' . jApp::config()->theme . '/' . jApp::config()->social_networks['images_path'] . '/Netvibes.png', $params) . '</a> ';
}
开发者ID:havefnubb,项目名称:havefnubb,代码行数:14,代码来源:function.social_networks.php

示例15: unset

        unset($tmp);
    }
} else {
    // Repository
    $tpl->setCurrentBlock('ENTRY');
    $pluglist = $rep->plug_list($idclient);
    if (is_array($pluglist)) {
        foreach ($pluglist as $plug) {
            if (!$perm->have_perm(15, 'plug', 0) && (strpos($plug['version'], 'dev') != false && $plug['version'] != '')) {
                continue;
            }
            $plug['count'] = (int) $rep->plug_count('0', $plug['repository_id'], true);
            // Hintergrundfarbe wählen
            $tmp['ENTRY_BGCOLOR'] = '#ffffff';
            $tmp['OVERENTRY_BGCOLOR'] = '#fff7ce';
            $tmp['ENTRY_ICON'] = make_image('but_plugin.gif', '', '16', '16');
            // Plugin importieren, todo:validate developer module
            if ($perm->have_perm(14, 'area_plug', 0) && $plug['count'] < 1) {
                $tmp['ENTRY_IMPORT'] = "<a class=\"action\" href=\"" . $sess->url("main.php?area=plug&action=import&repid=" . $plug['repository_id'] . "&idclient={$client}") . "\"><img src=\"tpl/" . $cfg_cms['skin'] . "/img/import.gif\" alt=\"" . $cms_lang['plug_repository_import'] . "\" title=\"" . $cms_lang['plug_repository_import'] . "\" width=\"16\" height=\"16\" /></a>";
            }
            // Plugin downloaden, todo:validate developer module
            if ($perm->have_perm(13, 'area_plug', 0)) {
                $tmp['ENTRY_DOWNLOAD'] = "<a class=\"action\" href=\"" . $sess->url("main.php?area=plug&repid=" . $plug['repository_id'] . "&idclient=-1&action=download") . "\"><img src=\"tpl/" . $cfg_cms['skin'] . "/img/but_download.gif\" alt=\"" . $cms_lang['plug_repository_download'] . "\" title=\"" . $cms_lang['plug_repository_download'] . "\" width=\"16\" height=\"16\"></a>";
            }
            /* // Plugin updaten
             * todo:validate list of local plugins
             * todo:oldperms!
             *if ( $perm->have_perm('area_plug_repository_update')  && $rep->enabled() ) {
             *   if ( $plug['repository_id'] > 0 && !$rep->online() ) $tmp['ENTRY_UPDATE'] = "<a name='norepository' onmouseover=\"on('".$cms_lang['plug_repository_notonline']."');return true;\" onmouseout=\"off();return true;\"><img src=\"tpl/".$cfg_cms['skin']."/img/but_offline.gif\" width=\"13\" height=\"13\" border=\"0\" alt=\"".$cms_lang['plug_repository_notonline']."\" title=\"".$cms_lang['plug_repository_notonline']."\"></a>";
             *   elseif ( $rep->plug_updates($plug['repository_id']) && $plug['repository_id'] > 0 ) $tmp['ENTRY_UPDATE'] = "<a href=\"".$sess->url('main.php?area=plug&action=update&idplug='.$plug['idplug'].'&repid='.$db->f('repository_id').'&idclient='.$idclient)."\" onmouseover=\"on('".$cms_lang['plug_repository_update']."');return true;\" onmouseout=\"off();return true;\"><img src=\"tpl/".$cfg_cms['skin']."/img/but_onpublish.gif\" width=\"13\" height=\"13\" border=\"0\" alt=\"".$cms_lang['plug_repository_update']."\" title=\"".$cms_lang['plug_repository_update']."\"></a>";
             *   elseif ( $plug['repository_id'] > 0 ) $tmp['ENTRY_UPDATE'] = "<a name='norepository' onmouseover=\"on('".$cms_lang['plug_repository_noupdate']."');return true;\" onmouseout=\"off();return true;\"><img src=\"tpl/".$cfg_cms['skin']."/img/but_online.gif\" width=\"13\" height=\"13\" border=\"0\" alt=\"".$cms_lang['plug_repository_noupdate']."\" title=\"".$cms_lang['plug_repository_noupdate']."\"></a>";
开发者ID:rbraband,项目名称:sefrengo,代码行数:31,代码来源:inc.plug.php


注:本文中的make_image函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。